Amirizaniani commited on
Commit
a34595f
·
verified ·
1 Parent(s): 6e718fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -155,9 +155,8 @@ def process_inputs(llm, file, relevance, diversity):
155
  # Extract the first column
156
  questions_list = df.iloc[:, 0]
157
 
158
- # Save the first column to a new Excel file
159
- output_file = "processed_questions.xlsx"
160
- questions_list.to_frame(name='Questions').to_excel(output_file, index=False)
161
  else:
162
  return "No questions provided.", None
163
 
 
155
  # Extract the first column
156
  questions_list = df.iloc[:, 0]
157
 
158
+ with pd.ExcelWriter(output_file, engine='openpyxl') as writer:
159
+ questions_list.to_frame(name='Questions').to_excel(writer, index=False, startrow=1)
 
160
  else:
161
  return "No questions provided.", None
162