Update app.py
Browse files
app.py
CHANGED
@@ -248,8 +248,8 @@ def demo():
|
|
248 |
""")
|
249 |
with gr.Tab("Step 1 - Document pre-processing"):
|
250 |
with gr.Row():
|
251 |
-
document = gr.Files(value = '/home/user/app/pdfs/Annual-Report-2022-2023-English_1.pdf',visible=
|
252 |
-
height=100, file_count="multiple", file_types=["pdf"],
|
253 |
# upload_btn = gr.UploadButton("Loading document...", height=100, file_count="multiple", file_types=["pdf"], scale=1)
|
254 |
with gr.Row():
|
255 |
db_btn = gr.Radio(["ChromaDB"], label="Vector database type", value = "ChromaDB", type="index", info="Choose your vector database")
|
|
|
248 |
""")
|
249 |
with gr.Tab("Step 1 - Document pre-processing"):
|
250 |
with gr.Row():
|
251 |
+
document = gr.Files(value = ['/home/user/app/pdfs/Annual-Report-2022-2023-English_1.pdf'],visible=False,
|
252 |
+
height=100, file_count="multiple", file_types=["pdf"], label="Upload your PDF documents (single or multiple)")
|
253 |
# upload_btn = gr.UploadButton("Loading document...", height=100, file_count="multiple", file_types=["pdf"], scale=1)
|
254 |
with gr.Row():
|
255 |
db_btn = gr.Radio(["ChromaDB"], label="Vector database type", value = "ChromaDB", type="index", info="Choose your vector database")
|