devilent2 commited on
Commit
e07f7f3
1 Parent(s): d7e5659

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -193,7 +193,7 @@ demo = gr.Blocks()
193
 
194
 
195
  with demo:
196
- gr.TabbedInterface(
197
  [
198
  mf_transcribe,
199
  gr.Interface(
@@ -207,13 +207,12 @@ with demo:
207
  ],
208
  ["Audio", "Base64 Audio Data URL"],
209
  )
210
-
211
  with gr.Row():
212
- refresh_button = gr.Button("Refresh Status") # Create a refresh button
213
-
214
  sys_status_output = gr.Textbox(label="System Status", interactive=False)
215
-
216
-
217
  # Link the refresh button to the refresh_status function
218
  refresh_button.click(refresh_status, None, [sys_status_output])
219
 
@@ -222,7 +221,8 @@ with demo:
222
 
223
  graudio.stop_recording(handle_upload_audio,inputs=[graudio,grmodel_textbox,groutputs[0]],outputs=groutputs)
224
  graudio.upload(handle_upload_audio,inputs=[graudio,grmodel_textbox,groutputs[0]],outputs=groutputs)
225
-
 
226
 
227
  # Launch the Gradio app
228
  demo.launch(share=True)
 
193
 
194
 
195
  with demo:
196
+ gr.TabbedInterface(
197
  [
198
  mf_transcribe,
199
  gr.Interface(
 
207
  ],
208
  ["Audio", "Base64 Audio Data URL"],
209
  )
210
+
211
  with gr.Row():
212
+ refresh_button = gr.Button("Refresh Status")
213
+
214
  sys_status_output = gr.Textbox(label="System Status", interactive=False)
215
+
 
216
  # Link the refresh button to the refresh_status function
217
  refresh_button.click(refresh_status, None, [sys_status_output])
218
 
 
221
 
222
  graudio.stop_recording(handle_upload_audio,inputs=[graudio,grmodel_textbox,groutputs[0]],outputs=groutputs)
223
  graudio.upload(handle_upload_audio,inputs=[graudio,grmodel_textbox,groutputs[0]],outputs=groutputs)
224
+
225
+
226
 
227
  # Launch the Gradio app
228
  demo.launch(share=True)