Rob Caamano commited on
Commit
d5a39db
·
unverified ·
1 Parent(s): 942f362
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -46,13 +46,13 @@ if st.button("Submit", type="primary"):
46
 
47
  if probability < 0.1:
48
  st.write("This tweet is not toxic.")
49
- else:
50
- df = pd.DataFrame(
51
- {
52
- "Tweet (portion)": [tweet_portion],
53
- column_name: [label],
54
- "Probability": [probability],
55
- }
56
- )
57
-
58
- st.table(df)
 
46
 
47
  if probability < 0.1:
48
  st.write("This tweet is not toxic.")
49
+
50
+ df = pd.DataFrame(
51
+ {
52
+ "Tweet (portion)": [tweet_portion],
53
+ column_name: [label],
54
+ "Probability": [probability],
55
+ }
56
+ )
57
+
58
+ st.table(df)