syurek commited on
Commit
2b2fd51
·
verified ·
1 Parent(s): 3845016

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ def answer_question(file, question):
11
  if file is None:
12
  return "Lütfen önce bir CSV dosyası yükleyin."
13
 
14
- # Dosyayı aç ve CSV olarak yükle
15
- df = pd.read_csv(file.name)
16
 
17
  # CSV verisini metne dönüştür
18
  context = df.to_string(index=False)
 
11
  if file is None:
12
  return "Lütfen önce bir CSV dosyası yükleyin."
13
 
14
+ # Dosyayı aç ve CSV olarak yükle, uygun encoding ile
15
+ df = pd.read_csv(file.name, encoding='ISO-8859-1') # veya 'windows-1254'
16
 
17
  # CSV verisini metne dönüştür
18
  context = df.to_string(index=False)