Spaces:
Running
on
Zero
Running
on
Zero
Fix Runtime error (#6)
Browse files- Fix Runtime error (642f1587da51885d0a93c053f04a4e0eec3e37b0)
Co-authored-by: Charles Bensimon <[email protected]>
- 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()
|