Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def generate_question(context, answer, num_beams=5):
|
|
83 |
# Function to export questions to CSV
|
84 |
def export_to_csv(data):
|
85 |
df = pd.DataFrame(data, columns=["Context", "Answer", "Question"])
|
86 |
-
csv = df.to_csv(
|
87 |
return csv
|
88 |
|
89 |
# Function to export questions to PDF
|
|
|
83 |
# Function to export questions to CSV
|
84 |
def export_to_csv(data):
|
85 |
df = pd.DataFrame(data, columns=["Context", "Answer", "Question"])
|
86 |
+
csv = df.to_csv(index=False,encoding='utf-8')
|
87 |
return csv
|
88 |
|
89 |
# Function to export questions to PDF
|