vishwask commited on
Commit
58d103a
·
verified ·
1 Parent(s): 8f07cc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -205,7 +205,9 @@ def demo():
205
  return pdf_files
206
 
207
  # Create a dictionary with the necessary information
208
- pdf_dict = {"value": process_pdfs, "height": 100, "file_count": "multiple", "visible": True, "file_types": ["pdf"], "interactive": True, "label": "Uploaded PDF documents"}
 
 
209
 
210
  # Create a gr.Files component with the dictionary
211
  #document_files = gr.Files(**pdf_dict)
@@ -213,7 +215,7 @@ def demo():
213
  with gr.Row():
214
  # document = gr.Files(value = process_pdfs, height=100, file_count="multiple",visible=True,
215
  # file_types=["pdf"], interactive=True, label="Upload your PDF documents (single or multiple)")
216
- document = gr.Files(**pdf_dict, visible = False)
217
  with gr.Row():
218
  db_btn = gr.Radio(["ChromaDB"], label="Vector database type", value = "ChromaDB", type="index", info="Choose your vector database",visible=False)
219
  with gr.Accordion("Advanced options - Document text splitter", open=False, visible=False):
 
205
  return pdf_files
206
 
207
  # Create a dictionary with the necessary information
208
+ pdf_dict = {"value": process_pdfs, "height": 100, "file_count": "multiple",
209
+ "visible": False, "file_types": ["pdf"], "interactive": True,
210
+ "label": "Uploaded PDF documents"}
211
 
212
  # Create a gr.Files component with the dictionary
213
  #document_files = gr.Files(**pdf_dict)
 
215
  with gr.Row():
216
  # document = gr.Files(value = process_pdfs, height=100, file_count="multiple",visible=True,
217
  # file_types=["pdf"], interactive=True, label="Upload your PDF documents (single or multiple)")
218
+ document = gr.Files(**pdf_dict)
219
  with gr.Row():
220
  db_btn = gr.Radio(["ChromaDB"], label="Vector database type", value = "ChromaDB", type="index", info="Choose your vector database",visible=False)
221
  with gr.Accordion("Advanced options - Document text splitter", open=False, visible=False):