cbensimon HF Staff commited on
Commit
7eb1fc7
·
verified ·
1 Parent(s): 2bb1610

Runtime error quickfix

Browse files

ZeroGPU client internals have slightly changed and broke this Space (as it starts Gradio server manually instead of relying on `demo.launch`).

This will be improved so ZeroGPU client can work smoothly in this scenario but here is a quickfix in the meantime

Files changed (1) hide show
  1. gradio_app.py +2 -0
gradio_app.py CHANGED
@@ -766,4 +766,6 @@ if __name__ == '__main__':
766
  torch.cuda.empty_cache()
767
  demo = build_app()
768
  app = gr.mount_gradio_app(app, demo, path="/")
 
 
769
  uvicorn.run(app, host=args.host, port=args.port)
 
766
  torch.cuda.empty_cache()
767
  demo = build_app()
768
  app = gr.mount_gradio_app(app, demo, path="/")
769
+ from spaces import zero
770
+ zero.startup()
771
  uvicorn.run(app, host=args.host, port=args.port)