Spaces:
Running
on
Zero
Running
on
Zero
Runtime error quickfix (#31)
Browse files- Runtime error quickfix (7eb1fc7f52e932d7b94b2609d691fb5e2bb7b968)
Co-authored-by: Charles Bensimon <cbensimon@users.noreply.huggingface.co>
- 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)
|