AbeerTrial commited on
Commit
3331828
·
1 Parent(s): 8bfaa1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -668,7 +668,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
668
 
669
  mic_soap_docx_input = gr.Textbox(label="Enter the name of SOAP .docx File")
670
  mic_soap_docx_button = gr.Button("Save SOAP Document")
671
- mic_soap_docx_output = gr.Textbox(label="File save status")
672
 
673
  mic_soap_download_button = gr.Button("Download SOAP .docx File")
674
  mic_soap_download_output = gr.Files(label="Download Link")
@@ -683,7 +683,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
683
 
684
  mic_sbar_docx_input = gr.Textbox(label="Enter the name of SBAR .docx File")
685
  mic_sbar_docx_button = gr.Button("Save SBAR Document")
686
- mic_sbar_docx_output = gr.Textbox(label="File save status")
687
 
688
  mic_sbar_download_button = gr.Button("Download SBAR .docx File")
689
  mic_sbar_download_output = gr.Files(label="Download Link")
@@ -707,7 +707,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
707
 
708
  upload_soap_docx_input = gr.Textbox(label="Enter the name of SOAP .docx File")
709
  upload_soap_docx_button = gr.Button("Save SOAP Document")
710
- upload_soap_docx_output = gr.Textbox(label="File save status")
711
 
712
  upload_soap_download_button = gr.Button("Download SOAP .docx File")
713
  upload_soap_download_output = gr.Files(label="Download Link")
@@ -722,7 +722,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
722
 
723
  upload_sbar_docx_input = gr.Textbox(label="Enter the name of SBAR .docx File")
724
  upload_sbar_docx_button = gr.Button("Save SBAR Document")
725
- upload_sbar_docx_output = gr.Textbox(label="File save status")
726
 
727
  upload_sbar_download_button = gr.Button("Download SBAR .docx File")
728
  upload_sbar_download_output = gr.Files(label="Download Link")
@@ -732,7 +732,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
732
  with gr.Tab("From Text Transcript"):
733
  with gr.Column():
734
 
735
- text_transcript_input = gr.Textbox(label="Enter your Transcript here")
736
 
737
  gr.ClearButton([text_transcript_input])
738
 
@@ -744,7 +744,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
744
 
745
  text_soap_docx_input = gr.Textbox(label="Enter the name of SOAP .docx File")
746
  text_soap_docx_button = gr.Button("Save SOAP Document")
747
- text_soap_docx_output = gr.Textbox(label="File save status")
748
 
749
  text_soap_download_button = gr.Button("Download SOAP .docx File")
750
  text_soap_download_output = gr.Files(label="Download Link")
@@ -759,7 +759,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
759
 
760
  text_sbar_docx_input = gr.Textbox(label="Enter the name of SBAR .docx File")
761
  text_sbar_docx_button = gr.Button("Save SBAR Document")
762
- text_sbar_docx_output = gr.Textbox(label="File save status")
763
 
764
  text_sbar_download_button = gr.Button("Download SBAR .docx File")
765
  text_sbar_download_output = gr.Files(label="Download Link")
@@ -775,11 +775,11 @@ with gr.Blocks(theme=theme, css=css) as demo:
775
  soap_refresh_button = gr.Button("View SOAP Reports")
776
  ask_soap_input = gr.CheckboxGroup(label="Choose File(s)")
777
 
778
- ask_soap_question = gr.Textbox(label="Enter Question here")
779
  ask_soap_button = gr.Button("Submit")
780
  ask_soap_output = gr.Textbox(label="Your Question-Answer From Chosen File(s)")
781
 
782
- ask_all_soap_button = gr.Button("Ask all SOAP Reports")
783
  ask_all_soap_output = gr.Textbox(label="Your Question-Answer From All File(s)")
784
 
785
  gr.ClearButton([ask_soap_input, ask_soap_question, ask_soap_output, ask_all_soap_output])
@@ -790,7 +790,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
790
  sbar_refresh_button = gr.Button("View SBAR Reports")
791
  ask_sbar_input = gr.CheckboxGroup(label="Choose File(s)")
792
 
793
- ask_sbar_question = gr.Textbox(label="Enter Question here")
794
  ask_sbar_button = gr.Button("Submit")
795
  ask_sbar_output = gr.Textbox(label="Your Question-Answer From Chosen File(s)")
796
 
@@ -799,7 +799,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
799
 
800
  gr.ClearButton([ask_sbar_input, ask_sbar_question, ask_sbar_output, ask_all_sbar_output])
801
 
802
- with gr.Tab("Query your Documents"):
803
  with gr.Column(elem_classes="col"):
804
 
805
  with gr.Tab("Upload and Process Documents"):
@@ -817,7 +817,7 @@ with gr.Blocks(theme=theme, css=css) as demo:
817
  with gr.Tab("Query Documents"):
818
  with gr.Column():
819
 
820
- file_search_input = gr.Textbox(label="Enter Question here")
821
  file_search_button = gr.Button("Search")
822
  file_search_output = gr.Textbox(label="Your Question-Answer From Document")
823
 
@@ -829,15 +829,15 @@ with gr.Blocks(theme=theme, css=css) as demo:
829
 
830
  gr.ClearButton([file_search_input, file_search_output, search_gpt_output, file_delete_output])
831
 
832
- with gr.Tab("Query ER knowledge Archieve Documents"):
833
  with gr.Column(elem_classes="col"):
834
 
835
  local_process_button = gr.Button("Process")
836
  local_process_output = gr.Textbox(label="Process Output Status")
837
 
838
- local_search_input = gr.Textbox(label="Enter Question here")
839
  local_search_button = gr.Button("Search")
840
- local_search_output = gr.Textbox(label="Your Question-Answer From ER knowledge Archieve Documents")
841
 
842
  local_gpt_button = gr.Button("Ask ChatGPT")
843
  local_gpt_output = gr.Textbox(label="Your Question-Answer From ChatGPT")
 
668
 
669
  mic_soap_docx_input = gr.Textbox(label="Enter the name of SOAP .docx File")
670
  mic_soap_docx_button = gr.Button("Save SOAP Document")
671
+ mic_soap_docx_output = gr.Textbox(label="File Save Status")
672
 
673
  mic_soap_download_button = gr.Button("Download SOAP .docx File")
674
  mic_soap_download_output = gr.Files(label="Download Link")
 
683
 
684
  mic_sbar_docx_input = gr.Textbox(label="Enter the name of SBAR .docx File")
685
  mic_sbar_docx_button = gr.Button("Save SBAR Document")
686
+ mic_sbar_docx_output = gr.Textbox(label="File Save Status")
687
 
688
  mic_sbar_download_button = gr.Button("Download SBAR .docx File")
689
  mic_sbar_download_output = gr.Files(label="Download Link")
 
707
 
708
  upload_soap_docx_input = gr.Textbox(label="Enter the name of SOAP .docx File")
709
  upload_soap_docx_button = gr.Button("Save SOAP Document")
710
+ upload_soap_docx_output = gr.Textbox(label="File Save Status")
711
 
712
  upload_soap_download_button = gr.Button("Download SOAP .docx File")
713
  upload_soap_download_output = gr.Files(label="Download Link")
 
722
 
723
  upload_sbar_docx_input = gr.Textbox(label="Enter the name of SBAR .docx File")
724
  upload_sbar_docx_button = gr.Button("Save SBAR Document")
725
+ upload_sbar_docx_output = gr.Textbox(label="File Save Status")
726
 
727
  upload_sbar_download_button = gr.Button("Download SBAR .docx File")
728
  upload_sbar_download_output = gr.Files(label="Download Link")
 
732
  with gr.Tab("From Text Transcript"):
733
  with gr.Column():
734
 
735
+ text_transcript_input = gr.Textbox(label="Enter Your Transcript Here")
736
 
737
  gr.ClearButton([text_transcript_input])
738
 
 
744
 
745
  text_soap_docx_input = gr.Textbox(label="Enter the name of SOAP .docx File")
746
  text_soap_docx_button = gr.Button("Save SOAP Document")
747
+ text_soap_docx_output = gr.Textbox(label="File Save Status")
748
 
749
  text_soap_download_button = gr.Button("Download SOAP .docx File")
750
  text_soap_download_output = gr.Files(label="Download Link")
 
759
 
760
  text_sbar_docx_input = gr.Textbox(label="Enter the name of SBAR .docx File")
761
  text_sbar_docx_button = gr.Button("Save SBAR Document")
762
+ text_sbar_docx_output = gr.Textbox(label="File Save Status")
763
 
764
  text_sbar_download_button = gr.Button("Download SBAR .docx File")
765
  text_sbar_download_output = gr.Files(label="Download Link")
 
775
  soap_refresh_button = gr.Button("View SOAP Reports")
776
  ask_soap_input = gr.CheckboxGroup(label="Choose File(s)")
777
 
778
+ ask_soap_question = gr.Textbox(label="Enter Your Question here")
779
  ask_soap_button = gr.Button("Submit")
780
  ask_soap_output = gr.Textbox(label="Your Question-Answer From Chosen File(s)")
781
 
782
+ ask_all_soap_button = gr.Button("Ask All SOAP Reports")
783
  ask_all_soap_output = gr.Textbox(label="Your Question-Answer From All File(s)")
784
 
785
  gr.ClearButton([ask_soap_input, ask_soap_question, ask_soap_output, ask_all_soap_output])
 
790
  sbar_refresh_button = gr.Button("View SBAR Reports")
791
  ask_sbar_input = gr.CheckboxGroup(label="Choose File(s)")
792
 
793
+ ask_sbar_question = gr.Textbox(label="Enter Your Question here")
794
  ask_sbar_button = gr.Button("Submit")
795
  ask_sbar_output = gr.Textbox(label="Your Question-Answer From Chosen File(s)")
796
 
 
799
 
800
  gr.ClearButton([ask_sbar_input, ask_sbar_question, ask_sbar_output, ask_all_sbar_output])
801
 
802
+ with gr.Tab("Query Your Documents"):
803
  with gr.Column(elem_classes="col"):
804
 
805
  with gr.Tab("Upload and Process Documents"):
 
817
  with gr.Tab("Query Documents"):
818
  with gr.Column():
819
 
820
+ file_search_input = gr.Textbox(label="Enter Your Question here")
821
  file_search_button = gr.Button("Search")
822
  file_search_output = gr.Textbox(label="Your Question-Answer From Document")
823
 
 
829
 
830
  gr.ClearButton([file_search_input, file_search_output, search_gpt_output, file_delete_output])
831
 
832
+ with gr.Tab("Query ER Knowledge Archive Documents"):
833
  with gr.Column(elem_classes="col"):
834
 
835
  local_process_button = gr.Button("Process")
836
  local_process_output = gr.Textbox(label="Process Output Status")
837
 
838
+ local_search_input = gr.Textbox(label="Enter Your Question here")
839
  local_search_button = gr.Button("Search")
840
+ local_search_output = gr.Textbox(label="Your Question-Answer From ER Knowledge Archive Documents")
841
 
842
  local_gpt_button = gr.Button("Ask ChatGPT")
843
  local_gpt_output = gr.Textbox(label="Your Question-Answer From ChatGPT")