Spaces:
Running
Running
Sync from GitHub via hub-sync
Browse files
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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", ""))
|