hkanumilli commited on
Commit
75c113a
·
1 Parent(s): 15a1c51

updating application file

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -38,8 +38,5 @@ def predict_emotion(text):
38
  probabilities_dict = {int_to_label[i]: prob for i, prob in enumerate(probabilities_list)}
39
  return probabilities_dict
40
 
41
- # Create a Gradio interface
42
- iface = gr.Interface(fn=predict_emotion, inputs="text", outputs=gr.outputs.Label(num_top_classes=3, type="confidences"))
43
-
44
- # Run the app
45
  iface.launch()
 
38
  probabilities_dict = {int_to_label[i]: prob for i, prob in enumerate(probabilities_list)}
39
  return probabilities_dict
40
 
41
+ iface = gr.Interface(fn=predict_emotion, inputs="text", outputs="label")
 
 
 
42
  iface.launch()