Spaces:
Running
on
Zero
Running
on
Zero
Runtime error quickfix
Browse filesZeroGPU 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
- 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)
|