pamunarr commited on
Commit
749f8db
·
verified ·
1 Parent(s): fc87946

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,4 +10,4 @@ def predict(text):
10
  _ , _ , probs = learner.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
- gr.Interface(fn=predict, inputs="text", outputs=gr.outputs.Label(num_top_classes=5)).launch(share=False)
 
10
  _ , _ , probs = learner.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
+ gr.Interface(fn=predict, inputs="text", outputs=gr.components.Label(num_top_classes=5)).launch(share=False)