Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -229,17 +229,17 @@ with gr.Blocks() as app:
|
|
229 |
- It works like a human: read, store, retrieve, and answer with full vision.
|
230 |
""")
|
231 |
|
232 |
-
gr.Markdown("- Currently online demo support PDF document with less than 50 pages.")
|
233 |
|
234 |
with gr.Row():
|
235 |
file_input = gr.File(type="binary", label="Upload PDF")
|
236 |
-
file_result = gr.Text(label="Knowledge Base ID (remember
|
237 |
process_button = gr.Button("Process PDF (Don't click until PDF upload success)")
|
238 |
|
239 |
process_button.click(add_pdf_gradio, inputs=[file_input], outputs=file_result)
|
240 |
|
241 |
with gr.Row():
|
242 |
-
kb_id_input = gr.Text(label="Your Knowledge Base ID (paste your Knowledge Base ID here:)")
|
243 |
query_input = gr.Text(label="Your Queston")
|
244 |
topk_input = inputs=gr.Number(value=3, minimum=1, maximum=5, step=1, label="Number of pages to retrieve")
|
245 |
retrieve_button = gr.Button("Retrieve")
|
|
|
229 |
- It works like a human: read, store, retrieve, and answer with full vision.
|
230 |
""")
|
231 |
|
232 |
+
gr.Markdown("- Currently online demo support PDF document with less than 50 pages due to GPU time limit. Deploy on your own machine for longer PDFs and books.")
|
233 |
|
234 |
with gr.Row():
|
235 |
file_input = gr.File(type="binary", label="Upload PDF")
|
236 |
+
file_result = gr.Text(label="Knowledge Base ID (remember it, it is re-usable!)")
|
237 |
process_button = gr.Button("Process PDF (Don't click until PDF upload success)")
|
238 |
|
239 |
process_button.click(add_pdf_gradio, inputs=[file_input], outputs=file_result)
|
240 |
|
241 |
with gr.Row():
|
242 |
+
kb_id_input = gr.Text(label="Your Knowledge Base ID (paste your Knowledge Base ID here, it is re-usable:)")
|
243 |
query_input = gr.Text(label="Your Queston")
|
244 |
topk_input = inputs=gr.Number(value=3, minimum=1, maximum=5, step=1, label="Number of pages to retrieve")
|
245 |
retrieve_button = gr.Button("Retrieve")
|