billyaungmyint commited on
Commit
dfc6e4e
·
verified ·
1 Parent(s): be5fe7d

Sync from GitHub via hub-sync

Browse files
Files changed (2) hide show
  1. VERSION +1 -1
  2. main.py +4 -1
VERSION CHANGED
@@ -1 +1 @@
1
- 7c22def4a6207a2a153d0b578a091e435518745e
 
1
+ a2a87491c9589738010def70103c7e43a0fe584d
main.py CHANGED
@@ -57,4 +57,7 @@ with gr.Blocks(title="GitHub to Hugging Face Sync Demo") as demo:
57
 
58
 
59
  if __name__ == "__main__":
60
- demo.launch(server_name="0.0.0.0")
 
 
 
 
57
 
58
 
59
  if __name__ == "__main__":
60
+ # server_name="0.0.0.0" is required inside HF Space containers.
61
+ # root_path ensures Gradio resolves JS/CSS assets correctly when running
62
+ # behind a reverse proxy or custom domain.
63
+ demo.launch(server_name="0.0.0.0", root_path=os.getenv("GRADIO_ROOT_PATH", ""))