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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -153,11 +153,10 @@ def process_inputs(llm, file, relevance, diversity):
153
  return "The uploaded file must contain only one column of questions.", None
154
 
155
  # Extract the first column
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
 
 
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