Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -83,10 +83,10 @@ def clean_text( text):
|
|
83 |
|
84 |
return ''.join(words)
|
85 |
|
86 |
-
df = pd.read_csv('train.csv')
|
87 |
df['comment_text'] = df['comment_text'].apply(lambda x: clean_text(x))
|
88 |
|
89 |
-
model = pickle.load(open('tox_model.
|
90 |
|
91 |
st.title('Toxic comment classification')
|
92 |
input = st.text_area('Enter your comment')
|
|
|
83 |
|
84 |
return ''.join(words)
|
85 |
|
86 |
+
df = pd.read_csv('train.csv.zip')
|
87 |
df['comment_text'] = df['comment_text'].apply(lambda x: clean_text(x))
|
88 |
|
89 |
+
model = pickle.load(open('tox_model.h5','rb'))
|
90 |
|
91 |
st.title('Toxic comment classification')
|
92 |
input = st.text_area('Enter your comment')
|