Di12 commited on
Commit
7dc6a4b
·
1 Parent(s): 402a262

Update app.py

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