Spaces:
Running
Running
Commit
·
62451e9
1
Parent(s):
3ed8b4b
Update app.py
Browse files
app.py
CHANGED
@@ -166,9 +166,7 @@ def file(input_file, input_checks):
|
|
166 |
return gr.update(value=output, visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False) # next_button_freq becomes available
|
167 |
|
168 |
def freq(output_file, input_checks):
|
169 |
-
preds_dict = {"neutral":
|
170 |
-
for pred in preds:
|
171 |
-
preds_dict[pred] = preds_dict[pred] + 1
|
172 |
bars = list(preds_dict.keys())
|
173 |
height = list(preds_dict.values())
|
174 |
|
|
|
166 |
return gr.update(value=output, visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False) # next_button_freq becomes available
|
167 |
|
168 |
def freq(output_file, input_checks):
|
169 |
+
preds_dict = {"neutral": 10, "anger": 8, "fear": 2, "joy": 15, "love": 3, "sadness": 4}
|
|
|
|
|
170 |
bars = list(preds_dict.keys())
|
171 |
height = list(preds_dict.values())
|
172 |
|