Matt09Miao commited on
Commit
6fa920b
·
verified ·
1 Parent(s): a716b14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -13,16 +13,7 @@ st.header("Please input your Tweet for Toxicity Analysis :performing_arts:")
13
  input = st.text_area("Enter a Tweer for analysis")
14
  result = toxic_model(input)
15
 
16
- # Display the classification result
17
- max_score = float('-inf')
18
- max_label = ''
19
-
20
- for result in results:
21
- if result['score'] > max_score:
22
- max_score = result['score']
23
- max_label = result['label']
24
-
25
- st.write("Tweet:", input)
26
- st.write("Label:", max_label)
27
- st.write("Score:", max_score)
28
 
 
13
  input = st.text_area("Enter a Tweer for analysis")
14
  result = toxic_model(input)
15
 
16
+ # Display the result
17
+ st.write("Tweet:", input)
18
+ st.write("Result:", result)
 
 
 
 
 
 
 
 
 
19