Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -152,11 +152,11 @@ def process_inputs(llm, file, relevance, diversity):
|
|
152 |
if df.shape[1] != 1:
|
153 |
return "The uploaded file must contain only one column of questions.", None
|
154 |
|
155 |
-
|
156 |
-
questions_list = df.iloc[:]
|
157 |
-
|
158 |
|
159 |
-
|
|
|
|
|
160 |
else:
|
161 |
return "No questions provided.", None
|
162 |
|
|
|
152 |
if df.shape[1] != 1:
|
153 |
return "The uploaded file must contain only one column of questions.", None
|
154 |
|
155 |
+
questions_list = df.iloc[:, 0]
|
|
|
|
|
156 |
|
157 |
+
# Save the first column to a new Excel file
|
158 |
+
output_file = "processed_questions.xlsx"
|
159 |
+
questions_list.to_frame().to_excel(output_file, index=False)
|
160 |
else:
|
161 |
return "No questions provided.", None
|
162 |
|