namberino commited on
Commit
9d3ce07
·
1 Parent(s): 581a346

Fix invalid upload type

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ with gr.Blocks(title="RAG MCQ generator") as gradio_app:
132
  gr.Markdown("## Upload a file and generate MCQs")
133
 
134
  with gr.Row():
135
- file_input = gr.File(label="Upload file (PDF, docx, etc)", type="file")
136
  topics = gr.Textbox(label="Topics (comma separated)", placeholder="e.g. calculus, derivatives")
137
  with gr.Row():
138
  n_questions = gr.Slider(minimum=1, maximum=50, step=1, value=5, label="Number of questions")
 
132
  gr.Markdown("## Upload a file and generate MCQs")
133
 
134
  with gr.Row():
135
+ file_input = gr.File(label="Upload file (PDF, docx, etc)", type="filepath", file_types=[".pdf"])
136
  topics = gr.Textbox(label="Topics (comma separated)", placeholder="e.g. calculus, derivatives")
137
  with gr.Row():
138
  n_questions = gr.Slider(minimum=1, maximum=50, step=1, value=5, label="Number of questions")