m7n commited on
Commit
f087077
·
1 Parent(s): 81b18bf

set static dir

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -664,6 +664,11 @@ with gr.Blocks(theme=theme, css="""
664
  )
665
 
666
 
 
 
 
 
 
667
  # Mount and run app
668
  # app = gr.mount_gradio_app(app, demo, path="/",ssr_mode=False)
669
 
@@ -671,4 +676,4 @@ with gr.Blocks(theme=theme, css="""
671
 
672
 
673
  if __name__ == "__main__":
674
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
664
  )
665
 
666
 
667
+ demo.static_dirs = {
668
+ "static": str(static_dir)
669
+ }
670
+
671
+
672
  # Mount and run app
673
  # app = gr.mount_gradio_app(app, demo, path="/",ssr_mode=False)
674
 
 
676
 
677
 
678
  if __name__ == "__main__":
679
+ demo.launch(server_name="0.0.0.0", server_port=7860, share=False)