Spaces:
Sleeping
Sleeping
Download app.py from amandaodoo/proyectogradio: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/amandaodoo/proyectogradio/resolve/main/app.py
- Command line
-
hf download hf://spaces/amandaodoo/proyectogradio/app.py
-
curl -L -o app.py https://huggingface.co/spaces/amandaodoo/proyectogradio/resolve/main/app.py
382 Bytes
| import gradio as gr | |
| import spaces | |
| def saludar(nombre): | |
| if not nombre.strip(): | |
| return "Hola!" | |
| return f"Hola, {nombre}!" | |
| demo = gr.Interface( | |
| fn=saludar, | |
| inputs=gr.Textbox(label="Nombre", placeholder="Escribe tu nombre"), | |
| outputs=gr.Textbox(label="Saludo"), | |
| title="App minima de Gradio", | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |