Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -131,11 +131,11 @@ def predict(text):
|
|
131 |
regex = r'@\w+\s?'
|
132 |
text = re.sub(regex, '', text)
|
133 |
text = preprocess_text(text)
|
134 |
-
predict_text(text)
|
135 |
|
136 |
st.title("Türkçe Zararlı Metin Sınıflandırma")
|
137 |
text = st.text_input("Bir metin giriniz...")
|
138 |
res = st.button("Sınıflandır")
|
139 |
|
140 |
if res:
|
141 |
-
predict(
|
|
|
131 |
regex = r'@\w+\s?'
|
132 |
text = re.sub(regex, '', text)
|
133 |
text = preprocess_text(text)
|
134 |
+
predict_text(model, text)
|
135 |
|
136 |
st.title("Türkçe Zararlı Metin Sınıflandırma")
|
137 |
text = st.text_input("Bir metin giriniz...")
|
138 |
res = st.button("Sınıflandır")
|
139 |
|
140 |
if res:
|
141 |
+
predict(ext)
|