jchen1234567
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ if st.button("Classify"):
|
|
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)
|
|
|
22 |
# Display the classification result
|
23 |
max_score = float('-inf')
|
24 |
max_label = ''
|
25 |
+
max_score = results['score']:.4
|
26 |
max_label = results['label']
|
27 |
|
28 |
st.write("Text:", text)
|