Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -234,7 +234,7 @@ def process_input(text_input, file):
|
|
| 234 |
comments += [line.strip() for line in content.splitlines() if line.strip()]
|
| 235 |
|
| 236 |
elif file_name.endswith('.csv'):
|
| 237 |
-
df = pd.read_csv(file)
|
| 238 |
comments += df.iloc[:, 0].dropna().astype(str).tolist()
|
| 239 |
|
| 240 |
# Kiểm tra nếu không có bình luận nào được cung cấp
|
|
|
|
| 234 |
comments += [line.strip() for line in content.splitlines() if line.strip()]
|
| 235 |
|
| 236 |
elif file_name.endswith('.csv'):
|
| 237 |
+
df = pd.read_csv(file, encoding='utf-8')
|
| 238 |
comments += df.iloc[:, 0].dropna().astype(str).tolist()
|
| 239 |
|
| 240 |
# Kiểm tra nếu không có bình luận nào được cung cấp
|