Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -81,6 +81,7 @@ os.environ["GRADIO_ROOT_PATH"] = "https://m7n-zero-gpu-uvicorn-ssr-example.hf.sp
|
|
81 |
|
82 |
# Mount Gradio app to FastAPI with SSR mode for Spaces
|
83 |
app = gr.mount_gradio_app(app, demo, path="/", ssr_mode=True)
|
|
|
84 |
|
85 |
# Run server
|
86 |
if __name__ == "__main__":
|
|
|
81 |
|
82 |
# Mount Gradio app to FastAPI with SSR mode for Spaces
|
83 |
app = gr.mount_gradio_app(app, demo, path="/", ssr_mode=True)
|
84 |
+
app.mount("/_app/immutable/assets", StaticFiles(directory="assets"), name="immutable_assets")
|
85 |
|
86 |
# Run server
|
87 |
if __name__ == "__main__":
|