Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -184,13 +184,13 @@ def process_pdf(pdf_file, uploaded_documents):
|
|
184 |
with gr.Blocks() as demo:
|
185 |
gr.Markdown("# PDF Uploader to Pinecone with Query Response")
|
186 |
|
187 |
-
with gr.
|
188 |
-
with gr.
|
189 |
response_output = gr.Textbox(label="Response:", lines=10, max_lines=10)
|
190 |
query_input = gr.Textbox(label="Enter your query:")
|
191 |
query_button = gr.Button("Get Response")
|
192 |
query_button.click(fn=run_graph, inputs=query_input, outputs=response_output)
|
193 |
-
with gr.
|
194 |
file_input = gr.File(label="Upload PDF", file_types=[".pdf"])
|
195 |
document_table = gr.Dataframe(headers=["Document Name", "Upload Time", "Chunks", "Pinecone Index"], interactive=False)
|
196 |
output_textbox = gr.Textbox(label="Result")
|
|
|
184 |
with gr.Blocks() as demo:
|
185 |
gr.Markdown("# PDF Uploader to Pinecone with Query Response")
|
186 |
|
187 |
+
with gr.Row():
|
188 |
+
with gr.Column():
|
189 |
response_output = gr.Textbox(label="Response:", lines=10, max_lines=10)
|
190 |
query_input = gr.Textbox(label="Enter your query:")
|
191 |
query_button = gr.Button("Get Response")
|
192 |
query_button.click(fn=run_graph, inputs=query_input, outputs=response_output)
|
193 |
+
with gr.Column():
|
194 |
file_input = gr.File(label="Upload PDF", file_types=[".pdf"])
|
195 |
document_table = gr.Dataframe(headers=["Document Name", "Upload Time", "Chunks", "Pinecone Index"], interactive=False)
|
196 |
output_textbox = gr.Textbox(label="Result")
|