Oliver Li commited on
Commit
89af5f1
1 Parent(s): 34b7701
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -123,7 +123,13 @@ if st.button("Analyze"):
123
  "Toxicity class 2": [results[1][0]],
124
  f"Class 2 probability": results[1][1]
125
  }
 
 
 
126
  table_df = pd.concat([pd.DataFrame(table_data), table_df], ignore_index=True)
 
 
 
127
  st.table(table_df)
128
  else:
129
  st.empty()
 
123
  "Toxicity class 2": [results[1][0]],
124
  f"Class 2 probability": results[1][1]
125
  }
126
+ print("Before concatenation:")
127
+ print(table_df)
128
+ # Concatenate the new data frame with the existing data frame
129
  table_df = pd.concat([pd.DataFrame(table_data), table_df], ignore_index=True)
130
+ print("After concatenation:")
131
+ print(table_df)
132
+ # Update the table with the new data frame
133
  st.table(table_df)
134
  else:
135
  st.empty()