Spaces:
Build error
Build error
update in UI
Browse files
app.py
CHANGED
|
@@ -86,13 +86,14 @@ def query_documents(user_query):
|
|
| 86 |
# Gradio interface combining document upload and query features
|
| 87 |
with gr.Blocks() as demo:
|
| 88 |
pdf_input = gr.File(file_count="multiple", label="Upload up to 10 PDF files")
|
|
|
|
|
|
|
| 89 |
query_input = gr.Textbox(label="Enter your query", placeholder="Type a question here...")
|
| 90 |
|
| 91 |
-
|
| 92 |
query_btn = gr.Button("Query Documents")
|
| 93 |
|
| 94 |
-
|
| 95 |
-
query_output = gr.Textbox()
|
| 96 |
|
| 97 |
process_btn.click(process_documents, inputs=[pdf_input], outputs=[process_output])
|
| 98 |
query_btn.click(query_documents, inputs=[query_input], outputs=[query_output])
|
|
|
|
| 86 |
# Gradio interface combining document upload and query features
|
| 87 |
with gr.Blocks() as demo:
|
| 88 |
pdf_input = gr.File(file_count="multiple", label="Upload up to 10 PDF files")
|
| 89 |
+
process_btn = gr.Button("Process PDFs")
|
| 90 |
+
process_output = gr.Textbox(label="wait before success message for the document process")
|
| 91 |
query_input = gr.Textbox(label="Enter your query", placeholder="Type a question here...")
|
| 92 |
|
| 93 |
+
|
| 94 |
query_btn = gr.Button("Query Documents")
|
| 95 |
|
| 96 |
+
query_output = gr.Textbox(label="retrieved documents")
|
|
|
|
| 97 |
|
| 98 |
process_btn.click(process_documents, inputs=[pdf_input], outputs=[process_output])
|
| 99 |
query_btn.click(query_documents, inputs=[query_input], outputs=[query_output])
|