NikilDGr8 commited on
Commit
3d5e124
1 Parent(s): 9de422b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -163,7 +163,7 @@ with gr.Blocks() as demo:
163
  with gr.TabItem("Doctor Info"):
164
  doctor_name_input = gr.Textbox(label="Doctor's Name", interactive=True)
165
  location_input = gr.Textbox(label="Location", interactive=True)
166
- next_button = gr.Button("Next")
167
 
168
  with gr.TabItem("OHA Form"):
169
  audio_input = gr.Audio(type="filepath", label="Record your audio", elem_id="audio_input")
@@ -188,5 +188,7 @@ with gr.Blocks() as demo:
188
 
189
  download_button.click(fn=gradio_download, inputs=[], outputs=download_csv_output)
190
 
 
 
191
  # Launch the app
192
  demo.launch()
 
163
  with gr.TabItem("Doctor Info"):
164
  doctor_name_input = gr.Textbox(label="Doctor's Name", interactive=True)
165
  location_input = gr.Textbox(label="Location", interactive=True)
166
+ next_button = gr.Button("Next", elem_id="next_button")
167
 
168
  with gr.TabItem("OHA Form"):
169
  audio_input = gr.Audio(type="filepath", label="Record your audio", elem_id="audio_input")
 
188
 
189
  download_button.click(fn=gradio_download, inputs=[], outputs=download_csv_output)
190
 
191
+ next_button.click(None, [], [], _js="() => { document.querySelector('button[aria-controls=\"OHA Form\"]').click(); }")
192
+
193
  # Launch the app
194
  demo.launch()