Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 215 |
-
content +=
|
| 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
|