Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -217,11 +217,8 @@ base_transcribe= gr.Interface(
|
|
217 |
demo = gr.Blocks()
|
218 |
|
219 |
|
220 |
-
|
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=
|
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 |
|