Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
31 |
st.write(f"Label: {rating[1]} \n Score : {rating[3]}")
|
32 |
elif selection == 'Model 2':
|
33 |
-
rating =
|
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")
|