Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ gui_css="""
|
|
78 |
"""
|
79 |
|
80 |
|
81 |
-
sample_button = "Load
|
82 |
|
83 |
|
84 |
examples_questions = [["How long is the lifespan of this smoke alarm?"],
|
@@ -183,7 +183,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=gui_css) as demo:
|
|
183 |
with gr.Row():
|
184 |
with gr.Column():
|
185 |
gr.Markdown(desc_pdf_upload)
|
186 |
-
pdf_files = gr.File(label="Upload PDF
|
187 |
load_button = gr.Button("Load and Index Documents", variant="secondary")
|
188 |
|
189 |
with gr.Column():
|
|
|
78 |
"""
|
79 |
|
80 |
|
81 |
+
sample_button = "Load and Index Sample PDF Files"
|
82 |
|
83 |
|
84 |
examples_questions = [["How long is the lifespan of this smoke alarm?"],
|
|
|
183 |
with gr.Row():
|
184 |
with gr.Column():
|
185 |
gr.Markdown(desc_pdf_upload)
|
186 |
+
pdf_files = gr.File(label="Upload PDF Documents", file_types=[".pdf"], interactive=True, file_count="multiple")
|
187 |
load_button = gr.Button("Load and Index Documents", variant="secondary")
|
188 |
|
189 |
with gr.Column():
|