Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -664,19 +664,6 @@ def create_app():
|
|
| 664 |
start_btn = gr.Button("🎮 Start Game", variant="primary")
|
| 665 |
stop_btn = gr.Button("⏹ End Game", interactive=False)
|
| 666 |
|
| 667 |
-
with gr.Column(scale=1, elem_classes=["controls-column"]):
|
| 668 |
-
control_input = gr.HTML(
|
| 669 |
-
value={"buttons": [], "mouse_x": 0.0, "mouse_y": 0.0},
|
| 670 |
-
html_template=CONTROL_INPUT_HTML,
|
| 671 |
-
js_on_load=CONTROL_INPUT_JS,
|
| 672 |
-
)
|
| 673 |
-
|
| 674 |
-
prompt_input = gr.Textbox(
|
| 675 |
-
label="World Prompt",
|
| 676 |
-
value="An explorable world",
|
| 677 |
-
lines=2,
|
| 678 |
-
)
|
| 679 |
-
|
| 680 |
with gr.Accordion("World Selection", open=True):
|
| 681 |
gr.Markdown("**Choose a starting world** (or leave blank for random):")
|
| 682 |
|
|
@@ -702,6 +689,21 @@ def create_app():
|
|
| 702 |
)
|
| 703 |
reset_btn = gr.Button("Reset World", variant="secondary", size="sm")
|
| 704 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 705 |
frame_display = gr.Number(label="Frame", value=0, interactive=False)
|
| 706 |
|
| 707 |
# --- Event Handlers ---
|
|
|
|
| 664 |
start_btn = gr.Button("🎮 Start Game", variant="primary")
|
| 665 |
stop_btn = gr.Button("⏹ End Game", interactive=False)
|
| 666 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 667 |
with gr.Accordion("World Selection", open=True):
|
| 668 |
gr.Markdown("**Choose a starting world** (or leave blank for random):")
|
| 669 |
|
|
|
|
| 689 |
)
|
| 690 |
reset_btn = gr.Button("Reset World", variant="secondary", size="sm")
|
| 691 |
|
| 692 |
+
with gr.Column(scale=1, elem_classes=["controls-column"]):
|
| 693 |
+
control_input = gr.HTML(
|
| 694 |
+
value={"buttons": [], "mouse_x": 0.0, "mouse_y": 0.0},
|
| 695 |
+
html_template=CONTROL_INPUT_HTML,
|
| 696 |
+
js_on_load=CONTROL_INPUT_JS,
|
| 697 |
+
)
|
| 698 |
+
|
| 699 |
+
prompt_input = gr.Textbox(
|
| 700 |
+
label="World Prompt",
|
| 701 |
+
value="An explorable world",
|
| 702 |
+
lines=2,
|
| 703 |
+
)
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
|
| 707 |
frame_display = gr.Number(label="Frame", value=0, interactive=False)
|
| 708 |
|
| 709 |
# --- Event Handlers ---
|