Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -81,13 +81,14 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
81 |
ColPali is model implemented from the [ColPali paper](https://arxiv.org/abs/2407.01449).
|
82 |
|
83 |
This demo allows you to upload PDF files and search for the most relevant pages based on your query.
|
|
|
84 |
""")
|
85 |
with gr.Row():
|
86 |
with gr.Column(scale=2):
|
87 |
gr.Markdown("## 1οΈβ£ Upload PDFs")
|
88 |
file = gr.File(file_types=["pdf"], file_count="multiple", label="Upload PDFs")
|
89 |
|
90 |
-
convert_button = gr.Button("π
|
91 |
message = gr.Textbox("Files not yet uploaded", label="Status")
|
92 |
embeds = gr.State(value=[])
|
93 |
imgs = gr.State(value=[])
|
|
|
81 |
ColPali is model implemented from the [ColPali paper](https://arxiv.org/abs/2407.01449).
|
82 |
|
83 |
This demo allows you to upload PDF files and search for the most relevant pages based on your query.
|
84 |
+
Refresh the page if you change documents !
|
85 |
""")
|
86 |
with gr.Row():
|
87 |
with gr.Column(scale=2):
|
88 |
gr.Markdown("## 1οΈβ£ Upload PDFs")
|
89 |
file = gr.File(file_types=["pdf"], file_count="multiple", label="Upload PDFs")
|
90 |
|
91 |
+
convert_button = gr.Button("π Index documents")
|
92 |
message = gr.Textbox("Files not yet uploaded", label="Status")
|
93 |
embeds = gr.State(value=[])
|
94 |
imgs = gr.State(value=[])
|