vishwask commited on
Commit
9a663f6
·
verified ·
1 Parent(s): 2c86e3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=True,
252
- height=100, file_count="multiple", file_types=["pdf"], interactive=True, 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")
 
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")