Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,5 +15,5 @@ def predict(sentence):
|
|
15 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
16 |
|
17 |
# Creamos la interfaz y la lanzamos.
|
18 |
-
gr.Interface(fn=predict, inputs="text", outputs=gr.outputs.Label(num_top_classes=3)
|
19 |
|
|
|
15 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
16 |
|
17 |
# Creamos la interfaz y la lanzamos.
|
18 |
+
gr.Interface(fn=predict, inputs="text", outputs=gr.outputs.Label(num_top_classes=3)).launch(share=False)
|
19 |
|