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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -157,7 +157,7 @@ def process_inputs(llm, file, relevance, diversity):
157
 
158
  # Save the first column to a new Excel file
159
  output_file = "processed_questions.xlsx"
160
- questions_list.to_frame().to_excel(output_file, index=False, header=["Questions"])
161
  else:
162
  return "No questions provided.", None
163
 
@@ -277,7 +277,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
277
  ("Claude", "TheBloke/claude2-alpaca-13B-GGUF"),
278
  ("Alpaca", "TheBloke/LeoScorpius-GreenNode-Alpaca-7B-v1-GGUF")],
279
  label="Large Language Model")
280
- file_upload = gr.File(label="Upload a File with Questions", file_types=[".xlsx"])
281
  relevance_slider = gr.Slider(0, 100, value=70, step=1, label="Relevance")
282
  diversity_slider = gr.Slider(0, 100, value=25, step=1, label="Diversity")
283
 
 
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
 
 
277
  ("Claude", "TheBloke/claude2-alpaca-13B-GGUF"),
278
  ("Alpaca", "TheBloke/LeoScorpius-GreenNode-Alpaca-7B-v1-GGUF")],
279
  label="Large Language Model")
280
+ file_upload = gr.File(label="Upload an Excel File with Questions", file_types=[".xlsx"])
281
  relevance_slider = gr.Slider(0, 100, value=70, step=1, label="Relevance")
282
  diversity_slider = gr.Slider(0, 100, value=25, step=1, label="Diversity")
283