Spaces:
Runtime error
Runtime error
cychristophercyc
commited on
Commit
•
ab3f219
1
Parent(s):
9624b3b
Update app.py
Browse files
app.py
CHANGED
@@ -77,13 +77,12 @@ if st.button("Classify"):
|
|
77 |
if result['score'] > max_score:
|
78 |
max_score = result['score']
|
79 |
max_label = result['label']
|
80 |
-
|
81 |
-
st.write("Label:", max_label)
|
82 |
-
st.write("Score:", max_score)
|
83 |
new_dictionary = {
|
84 |
"Text":dataframe['content'].iloc[n],
|
85 |
"Label" : max_label
|
86 |
}
|
|
|
87 |
list_of_dictionaries.append(new_dictionary)
|
88 |
|
89 |
|
|
|
77 |
if result['score'] > max_score:
|
78 |
max_score = result['score']
|
79 |
max_label = result['label']
|
80 |
+
|
|
|
|
|
81 |
new_dictionary = {
|
82 |
"Text":dataframe['content'].iloc[n],
|
83 |
"Label" : max_label
|
84 |
}
|
85 |
+
list_of_dictionaries = []
|
86 |
list_of_dictionaries.append(new_dictionary)
|
87 |
|
88 |
|