SVashishta1 commited on
Commit
19966eb
·
1 Parent(s): a72e3c3
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -972,15 +972,16 @@ with gr.Blocks(title="AI Document Analysis & Voice Assistant") as demo:
972
  )
973
 
974
  with gr.Tab("Document Upload"):
975
- with gr.Row():
976
  file_upload = gr.File(
977
  label="Upload Documents",
978
  file_types=[".pdf", ".txt", ".docx", ".csv", ".xlsx"],
979
  file_count="multiple"
980
  )
981
- flush_db_btn_doc = gr.Button("🗑️ Flush All Databases", variant="stop")
982
 
983
- upload_button = gr.Button("Process & Index Documents")
 
 
 
984
  upload_output = gr.Textbox(label="Upload Status")
985
 
986
  upload_button.click(
@@ -1038,7 +1039,7 @@ with gr.Blocks(title="AI Document Analysis & Voice Assistant") as demo:
1038
  inputs=[api_key],
1039
  outputs=[gr.Textbox(label="Status")]
1040
  )
1041
-
1042
  gr.Markdown("## Debugging")
1043
  test_viz_btn = gr.Button("Test Visualization")
1044
  test_viz_output = gr.HTML(label="Test Visualization")
 
972
  )
973
 
974
  with gr.Tab("Document Upload"):
 
975
  file_upload = gr.File(
976
  label="Upload Documents",
977
  file_types=[".pdf", ".txt", ".docx", ".csv", ".xlsx"],
978
  file_count="multiple"
979
  )
 
980
 
981
+ with gr.Row():
982
+ upload_button = gr.Button("Process & Index Documents", scale=2)
983
+ flush_db_btn_doc = gr.Button("🗑️ Flush All Databases", variant="stop", scale=1)
984
+
985
  upload_output = gr.Textbox(label="Upload Status")
986
 
987
  upload_button.click(
 
1039
  inputs=[api_key],
1040
  outputs=[gr.Textbox(label="Status")]
1041
  )
1042
+
1043
  gr.Markdown("## Debugging")
1044
  test_viz_btn = gr.Button("Test Visualization")
1045
  test_viz_output = gr.HTML(label="Test Visualization")