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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -14,6 +14,9 @@ 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
 
 
14
  result = toxic_model(input)
15
 
16
  # Display the result
17
+ If iput is not None
18
  st.write("Tweet:", input)
19
+ st.write("label:", result["label"])
20
+ st.write("score:", result["socre"])
21
+
22