Amirizaniani commited on
Commit
01d313d
·
verified ·
1 Parent(s): 3675f63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- # Extract the first column
156
- questions_list = df.iloc[:]
157
-
158
 
159
- questions_df.to_excel(output_file, index=False)
 
 
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