David Mabula commited on
Commit
872dd95
·
1 Parent(s): 4f47cd4

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from detoxify import Detoxify
2
+ import streamlit as st
3
+
4
+ input = st.text_area('Enter a sentence')
5
+ if input:
6
+ results = Detoxify('original').predict(input)
7
+ st.json(results)