devilent2 commited on
Commit
190e289
1 Parent(s): 9b46ea0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -217,11 +217,8 @@ base_transcribe= gr.Interface(
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
 
@@ -245,7 +242,7 @@ with demo:
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=None, queue=False)
249
 
250
 
251
 
 
217
  demo = gr.Blocks()
218
 
219
 
220
+ #@spaces.GPU
221
  def onload():
 
 
 
222
  return update_status();
223
 
224
 
 
242
  graudio.stop_recording(handle_upload_audio, inputs=[graudio, grmodel_textbox, groutputs[0]], outputs=groutputs)
243
  graudio.upload(handle_upload_audio, inputs=[graudio, grmodel_textbox, groutputs[0]], outputs=groutputs)
244
  # Load the initial status using update_status function
245
+ demo.load(onload, inputs=None, outputs=groutputs, queue=False)
246
 
247
 
248