Spaces:
Running
on
Zero
Running
on
Zero
Runtime error quickfix
#31
by
cbensimon
HF Staff
- opened
- 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)
|