guserrl commited on
Commit
a6476f4
·
1 Parent(s): 5a1b280

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,4 +11,4 @@ def predict(text):
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
  # Creamos la interfaz y la lanzamos.
14
- gr.Interface(fn=predict, inputs=gr.inputs.Text(), outputs=gr.outputs.Label(num_top_classes=3)).launch(share=False)
 
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
  # Creamos la interfaz y la lanzamos.
14
+ gr.Interface(fn=predict, inputs="text", outputs=gr.outputs.Label(num_top_classes=3)).launch(share=False)