Spaces:
Runtime error
Runtime error
Rename APP.py to app.py
Browse files- APP.py → app.py +2 -2
APP.py → app.py
RENAMED
|
@@ -83,10 +83,10 @@ def clean_text( text):
|
|
| 83 |
|
| 84 |
return ''.join(words)
|
| 85 |
|
| 86 |
-
df = pd.read_csv('
|
| 87 |
df['comment_text'] = df['comment_text'].apply(lambda x: clean_text(x))
|
| 88 |
|
| 89 |
-
model = pickle.load(open('
|
| 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')
|
| 87 |
df['comment_text'] = df['comment_text'].apply(lambda x: clean_text(x))
|
| 88 |
|
| 89 |
+
model = pickle.load(open('tox_model.pkl','rb'))
|
| 90 |
|
| 91 |
st.title('Toxic comment classification')
|
| 92 |
input = st.text_area('Enter your comment')
|