saumitras commited on
Commit
1fc843e
·
unverified ·
1 Parent(s): c91aba6

adding rag

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -88,16 +88,16 @@ def create_ui():
88
  gr.Markdown("# Colpali Milvus Search Demo")
89
  gr.Markdown("This demo showcases how to use [Colpali](https://github.com/illuin-tech/colpali) embeddings with [Milvus](https://milvus.io/) for pdf search.")
90
 
91
- with gr.Tab("Upload PDFs"):
92
  with gr.Column():
93
- file_input = gr.File(label="Upload PDFs")
94
 
95
  max_pages_input = gr.Slider(
96
  minimum=1,
97
  maximum=50,
98
  value=20,
99
  step=10,
100
- label="Max Pages"
101
  )
102
 
103
  status = gr.Textbox(label="Indexing Status", interactive=False)
@@ -114,7 +114,7 @@ def create_ui():
114
  # )
115
  search_btn = gr.Button("Query")
116
  llm_answer = gr.Textbox(label="RAG Response", interactive=False)
117
- images = gr.Image(label="Page matching query")
118
 
119
  # Event handlers
120
  file_input.change(
 
88
  gr.Markdown("# Colpali Milvus Search Demo")
89
  gr.Markdown("This demo showcases how to use [Colpali](https://github.com/illuin-tech/colpali) embeddings with [Milvus](https://milvus.io/) for pdf search.")
90
 
91
+ with gr.Tab("Upload PDF"):
92
  with gr.Column():
93
+ file_input = gr.File(label="Upload PDF")
94
 
95
  max_pages_input = gr.Slider(
96
  minimum=1,
97
  maximum=50,
98
  value=20,
99
  step=10,
100
+ label="Max pages to extract and index"
101
  )
102
 
103
  status = gr.Textbox(label="Indexing Status", interactive=False)
 
114
  # )
115
  search_btn = gr.Button("Query")
116
  llm_answer = gr.Textbox(label="RAG Response", interactive=False)
117
+ images = gr.Image(label="Top page matching query")
118
 
119
  # Event handlers
120
  file_input.change(