Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,14 @@ from gradio_client import Client
|
|
3 |
|
4 |
client = Client("https://08661de9477c2ac001.gradio.live")
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Crear una interfaz Gradio
|
8 |
iface = gr.Interface(
|
|
|
3 |
|
4 |
client = Client("https://08661de9477c2ac001.gradio.live")
|
5 |
|
6 |
+
# Definir la funci贸n de predicci贸n
|
7 |
+
def predict(text):
|
8 |
+
|
9 |
+
result = client.predict(
|
10 |
+
text, # str in 'text' Textbox component
|
11 |
+
api_name="/predict"
|
12 |
+
)
|
13 |
+
return result
|
14 |
|
15 |
# Crear una interfaz Gradio
|
16 |
iface = gr.Interface(
|