Spaces:
Sleeping
Sleeping
changed gr filetype from binary to filepath
Browse files
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="
|
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="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")
|