Rubén Escobedo commited on
Commit ·
8391e67
1
Parent(s): 0aa7f4b
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,4 +13,4 @@ def predict(text):
|
|
| 13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 14 |
|
| 15 |
# Creamos la interfaz y la lanzamos.
|
| 16 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Textbox(default = "
|
|
|
|
| 13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 14 |
|
| 15 |
# Creamos la interfaz y la lanzamos.
|
| 16 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Textbox(default = "This app is amazing!"), outputs=gr.outputs.Label()).launch(share=False)
|