cdb24 commited on
Commit
1d7207a
1 Parent(s): 68276e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,10 +27,10 @@ def main():
27
  input = st.text_area("Enter Tweet: ")
28
  if st.button('Rate') and input:
29
  if selection == 'Model 1':
30
- rating = rate_ModelOne(input, model_one)
31
  st.write(f"Label: {rating[1]} \n Score : {rating[3]}")
32
  elif selection == 'Model 2':
33
- rating = rate_ModelOne(input, model_two)
34
  st.write(f"Label: {rating[1]} \n Score : {rating[4]}")
35
  else:
36
  st.warning("Enter Tweet")
 
27
  input = st.text_area("Enter Tweet: ")
28
  if st.button('Rate') and input:
29
  if selection == 'Model 1':
30
+ rating = toxicRating(input, model_one)
31
  st.write(f"Label: {rating[1]} \n Score : {rating[3]}")
32
  elif selection == 'Model 2':
33
+ rating = toxicRating(input, model_two)
34
  st.write(f"Label: {rating[1]} \n Score : {rating[4]}")
35
  else:
36
  st.warning("Enter Tweet")