m7n commited on
Commit
d45b27c
·
verified ·
1 Parent(s): 87ab2d3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
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__":