Update app.py
Browse files
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)
|