Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -156,16 +156,13 @@ def process_inputs(llm, file, relevance, diversity):
|
|
156 |
questions_list = df.iloc[:, 0]
|
157 |
|
158 |
output_file = "processed_questions.xlsx"
|
159 |
-
questions_df = questions_list.to_frame(
|
160 |
-
questions_df.to_excel(output_file, index=False)
|
161 |
else:
|
162 |
return "No questions provided.", None
|
163 |
|
164 |
return "Processing complete. Download the file below.", output_file
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
text_list = []
|
170 |
|
171 |
def updateChoices(prompt):
|
|
|
156 |
questions_list = df.iloc[:, 0]
|
157 |
|
158 |
output_file = "processed_questions.xlsx"
|
159 |
+
questions_df = questions_list.to_frame()
|
160 |
+
questions_df.to_excel(output_file, index=False, header=False)
|
161 |
else:
|
162 |
return "No questions provided.", None
|
163 |
|
164 |
return "Processing complete. Download the file below.", output_file
|
165 |
|
|
|
|
|
|
|
166 |
text_list = []
|
167 |
|
168 |
def updateChoices(prompt):
|