Spaces:
Sleeping
Sleeping
hkanumilli
commited on
Commit
·
75c113a
1
Parent(s):
15a1c51
updating application file
Browse files
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 |
-
|
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()
|