Amirizaniani commited on
Commit
2d8d72b
·
verified ·
1 Parent(s): 514398d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -156,12 +156,15 @@ def process_inputs(llm, file, relevance, diversity):
156
  questions_list = df.iloc[:, 0]
157
 
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
 
163
  return "Processing complete. Download the file below.", output_file
164
 
 
165
 
166
  text_list = []
167
 
 
156
  questions_list = df.iloc[:, 0]
157
 
158
  output_file = "processed_questions.xlsx"
159
+ questions_df = questions_list.to_frame(name='Questions')
160
+ with pd.ExcelWriter(output_file, engine='openpyxl') as writer:
161
+ questions_df.to_excel(writer, index=False, startrow=1)
162
  else:
163
  return "No questions provided.", None
164
 
165
  return "Processing complete. Download the file below.", output_file
166
 
167
+
168
 
169
  text_list = []
170