Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ with gr.Blocks(css=css,theme=gr.themes.Monochrome()) as demo:
38
  gr.HTML(html)
39
  with gr.Column():
40
  gr.Markdown('ChatPDF')
41
- pdf_doc = gr.File(label="Load a pdf",file_types=['.pdf','.docx'],type='file')
42
  with gr.Row():
43
  load_pdf = gr.Button('Load pdf file')
44
  status = gr.Textbox(label="Status",placeholder='',interactive=False)
 
38
  gr.HTML(html)
39
  with gr.Column():
40
  gr.Markdown('ChatPDF')
41
+ pdf_doc = gr.File(label="Load a pdf",file_types=['.pdf','.docx'],type='filepath')
42
  with gr.Row():
43
  load_pdf = gr.Button('Load pdf file')
44
  status = gr.Textbox(label="Status",placeholder='',interactive=False)