Spaces:
Running
on
Zero
Running
on
Zero
adding rag
Browse files
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
|
92 |
with gr.Column():
|
93 |
-
file_input = gr.File(label="Upload
|
94 |
|
95 |
max_pages_input = gr.Slider(
|
96 |
minimum=1,
|
97 |
maximum=50,
|
98 |
value=20,
|
99 |
step=10,
|
100 |
-
label="Max
|
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="
|
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(
|