jchen1234567
commited on
Commit
•
b40863c
1
Parent(s):
574362f
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ if st.button("Classify"):
|
|
22 |
# Display the classification result
|
23 |
max_score = float('-inf')
|
24 |
max_label = ''
|
25 |
-
max_score =
|
26 |
-
max_label =
|
27 |
|
28 |
st.write("Text:", text)
|
29 |
st.write("Label:", max_label)
|
|
|
22 |
# Display the classification result
|
23 |
max_score = float('-inf')
|
24 |
max_label = ''
|
25 |
+
max_score = results['score']
|
26 |
+
max_label = results['label']
|
27 |
|
28 |
st.write("Text:", text)
|
29 |
st.write("Label:", max_label)
|