Pijush2023 commited on
Commit
4af9484
·
verified ·
1 Parent(s): 37b51d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.Column():
188
- with gr.Row():
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.Row():
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")