Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,2 +1,32 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# En tu máquina local:
|
2 |
+
git clone https://huggingface.co/spaces/ferron2002/clona.git
|
3 |
+
cd clona
|
4 |
+
|
5 |
+
# Dentro de esta carpeta, tendrás un repo de Git vacío (o con ficheros mínimos).
|
6 |
+
# Aquí pones:
|
7 |
+
# - app.py (tu script de Gradio)
|
8 |
+
# - requirements.txt (dependencias)
|
9 |
+
|
10 |
+
# app.py (ejemplo muy sencillo)
|
11 |
+
import gradio as gr
|
12 |
+
|
13 |
+
def saludar(nombre):
|
14 |
+
return f"Hola, {nombre}!"
|
15 |
+
|
16 |
+
demo = gr.Interface(
|
17 |
+
fn=saludar,
|
18 |
+
inputs="text",
|
19 |
+
outputs="text",
|
20 |
+
)
|
21 |
+
|
22 |
+
if __name__ == "__main__":
|
23 |
+
demo.launch()
|
24 |
+
|
25 |
+
# requirements.txt (si necesitas libs adicionales):
|
26 |
+
# gradio==3.23.0
|
27 |
+
# Spanish-F5
|
28 |
+
# etc.
|
29 |
+
|
30 |
+
git add .
|
31 |
+
git commit -m "Subo mi app"
|
32 |
+
git push
|