Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,7 +235,7 @@ def handle_url(url: str) -> tuple[str, str | None]:
|
|
| 235 |
|
| 236 |
|
| 237 |
print("Uploading")
|
| 238 |
-
print(handle_url("https://
|
| 239 |
|
| 240 |
# -----------------------------
|
| 241 |
# Gradio App
|
|
@@ -264,7 +264,7 @@ ColPali is implemented from the [ColPali paper](https://arxiv.org/abs/2407.01449
|
|
| 264 |
with gr.Column(scale=3):
|
| 265 |
gr.Markdown("## 2️⃣ Search")
|
| 266 |
query = gr.Textbox(placeholder="Enter your query here", label="Query")
|
| 267 |
-
k_slider = gr.Slider(minimum=1, maximum=
|
| 268 |
search_button = gr.Button("🔍 Search", variant="primary")
|
| 269 |
output_text = gr.Textbox(label="AI Response", placeholder="Generated response based on retrieved documents")
|
| 270 |
|
|
|
|
| 235 |
|
| 236 |
|
| 237 |
print("Uploading")
|
| 238 |
+
print(handle_url("https://www.ipcc.ch/report/ar6/syr/downloads/report/IPCC_AR6_SYR_SPM.pdf"))
|
| 239 |
|
| 240 |
# -----------------------------
|
| 241 |
# Gradio App
|
|
|
|
| 264 |
with gr.Column(scale=3):
|
| 265 |
gr.Markdown("## 2️⃣ Search")
|
| 266 |
query = gr.Textbox(placeholder="Enter your query here", label="Query")
|
| 267 |
+
k_slider = gr.Slider(minimum=1, maximum=20, step=1, label="Number of results", value=5)
|
| 268 |
search_button = gr.Button("🔍 Search", variant="primary")
|
| 269 |
output_text = gr.Textbox(label="AI Response", placeholder="Generated response based on retrieved documents")
|
| 270 |
|