jchen1234567 commited on
Commit
b40863c
1 Parent(s): 574362f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = result['score']
26
- max_label = result['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)