devilent2 commited on
Commit
418f143
1 Parent(s): 6f3ebe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -217,6 +217,14 @@ base_transcribe= gr.Interface(
217
  demo = gr.Blocks()
218
 
219
 
 
 
 
 
 
 
 
 
220
  with demo:
221
  tabbed_interface = gr.TabbedInterface(
222
  [
@@ -236,19 +244,11 @@ with demo:
236
 
237
  graudio.stop_recording(handle_upload_audio, inputs=[graudio, grmodel_textbox, groutputs[0]], outputs=groutputs)
238
  graudio.upload(handle_upload_audio, inputs=[graudio, grmodel_textbox, groutputs[0]], outputs=groutputs)
 
 
239
 
240
-
241
- @spaces.GPU
242
- def onload():
243
- while True:
244
- print('onload loop excution')
245
- time.sleep(2)
246
-
247
-
248
- return update_status();
249
 
250
- # Load the initial status using update_status function
251
- demo.load(onload, inputs=None, outputs=[sys_status_output], queue=False)
252
  # Launch the Gradio app
253
  demo.launch(share=True)
254
 
 
217
  demo = gr.Blocks()
218
 
219
 
220
+ @spaces.GPU
221
+ def onload():
222
+ while True:
223
+ print('onload loop excution')
224
+ time.sleep(2)
225
+ return update_status();
226
+
227
+
228
  with demo:
229
  tabbed_interface = gr.TabbedInterface(
230
  [
 
244
 
245
  graudio.stop_recording(handle_upload_audio, inputs=[graudio, grmodel_textbox, groutputs[0]], outputs=groutputs)
246
  graudio.upload(handle_upload_audio, inputs=[graudio, grmodel_textbox, groutputs[0]], outputs=groutputs)
247
+ # Load the initial status using update_status function
248
+ demo.load(onload, inputs=None, outputs=[sys_status_output], queue=False)
249
 
 
 
 
 
 
 
 
 
 
250
 
251
+
 
252
  # Launch the Gradio app
253
  demo.launch(share=True)
254