Di12 commited on
Commit
1dc6ef0
·
verified ·
1 Parent(s): 4c1c582

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,8 +211,8 @@ def predict_sentiment(model, sentence, vocab, label_mapping=None):
211
 
212
  def process_input(text_input, file):
213
  content = ""
214
- if text:
215
- content += text + "\n"
216
  if file is not None:
217
  content += file.read().decode('utf-8') + "\n"
218
  # Tách câu: theo dấu ., ?, ! hoặc xuống dòng
 
211
 
212
  def process_input(text_input, file):
213
  content = ""
214
+ if text_input:
215
+ content += text_input + "\n"
216
  if file is not None:
217
  content += file.read().decode('utf-8') + "\n"
218
  # Tách câu: theo dấu ., ?, ! hoặc xuống dòng