Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -621,4 +621,7 @@ with gr.Blocks(title="Game Builder AI", css=_CSS) as demo:
|
|
| 621 |
|
| 622 |
|
| 623 |
if __name__ == "__main__":
|
| 624 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 621 |
|
| 622 |
|
| 623 |
if __name__ == "__main__":
|
| 624 |
+
if os.getenv("SPACE_ID"):
|
| 625 |
+
demo.launch()
|
| 626 |
+
else:
|
| 627 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, share=False)
|