isayahc commited on
Commit
8a73d12
·
verified ·
1 Parent(s): ffe7e6e

attempt to fix pdf_doc Nonetype error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ with gr.Blocks(css=css) as demo:
85
  gr.HTML(title)
86
 
87
  with gr.Column():
88
- pdf_doc = gr.File(label="Load a pdf", file_types=['.pdf'], type="filepath") #try filepath for type if binary does not work
89
  with gr.Row():
90
  langchain_status = gr.Textbox(label="Status", placeholder="", interactive=False)
91
  load_pdf = gr.Button("Load pdf to langchain")
 
85
  gr.HTML(title)
86
 
87
  with gr.Column():
88
+ pdf_doc = gr.File(label="Load a pdf", file_types=['.pdf'], type="binary") #try filepath for type if binary does not work
89
  with gr.Row():
90
  langchain_status = gr.Textbox(label="Status", placeholder="", interactive=False)
91
  load_pdf = gr.Button("Load pdf to langchain")