thealper2 commited on
Commit
7afc2f0
·
1 Parent(s): 854a361

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(model, text)
 
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)