Fix Runtime error

#6
by cbensimon HF Staff - opened
Files changed (1) hide show
  1. gradio_app.py +2 -0
gradio_app.py CHANGED
@@ -34,6 +34,7 @@ MAX_SEED = 1e7
34
  if True:
35
  import os
36
  import spaces
 
37
  import subprocess
38
  import sys
39
  import shlex
@@ -765,3 +766,4 @@ if __name__ == '__main__':
765
  demo = build_app()
766
  app = gr.mount_gradio_app(app, demo, path="/")
767
  uvicorn.run(app, host=args.host, port=args.port)
 
 
34
  if True:
35
  import os
36
  import spaces
37
+ import spaces.zero
38
  import subprocess
39
  import sys
40
  import shlex
 
766
  demo = build_app()
767
  app = gr.mount_gradio_app(app, demo, path="/")
768
  uvicorn.run(app, host=args.host, port=args.port)
769
+ spaces.zero.startup()