Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- ui/gradio_app.py +14 -14
ui/gradio_app.py
CHANGED
|
@@ -458,20 +458,6 @@ def build_app():
|
|
| 458 |
fn=lambda: bubble(get_myco_narrative()),
|
| 459 |
outputs=myco_bubble
|
| 460 |
)
|
| 461 |
-
|
| 462 |
-
# Streams Myco's full log: narrative ([NARRATIVE]), in-game action
|
| 463 |
-
# reactions ([ACTION]), and chat replies ([CHAT]).
|
| 464 |
-
myco_live = gr.Textbox(
|
| 465 |
-
label="π Myco's live log (narrative / action / chat)",
|
| 466 |
-
value="π Myco is listening...",
|
| 467 |
-
lines=10,
|
| 468 |
-
max_lines=20,
|
| 469 |
-
autoscroll=True,
|
| 470 |
-
interactive=False,
|
| 471 |
-
elem_id="myco-live-log",
|
| 472 |
-
)
|
| 473 |
-
|
| 474 |
-
demo.load(fn=_stream_myco, outputs=[myco_live])
|
| 475 |
|
| 476 |
# Autonomous roam timer β every 5 seconds, pure Python movement
|
| 477 |
roam_timer = gr.Timer(5)
|
|
@@ -552,6 +538,20 @@ def build_app():
|
|
| 552 |
|
| 553 |
with gr.Tab("π Myco"):
|
| 554 |
render_shroom_tab()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 555 |
|
| 556 |
|
| 557 |
# ββ Shared output lists ββ
|
|
|
|
| 458 |
fn=lambda: bubble(get_myco_narrative()),
|
| 459 |
outputs=myco_bubble
|
| 460 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 461 |
|
| 462 |
# Autonomous roam timer β every 5 seconds, pure Python movement
|
| 463 |
roam_timer = gr.Timer(5)
|
|
|
|
| 538 |
|
| 539 |
with gr.Tab("π Myco"):
|
| 540 |
render_shroom_tab()
|
| 541 |
+
|
| 542 |
+
# Streams Myco's full log: narrative ([NARRATIVE]), in-game action
|
| 543 |
+
# reactions ([ACTION]), and chat replies ([CHAT]).
|
| 544 |
+
myco_live = gr.Textbox(
|
| 545 |
+
label="π Myco's live log (narrative / action / chat)",
|
| 546 |
+
value="π Myco is listening...",
|
| 547 |
+
lines=10,
|
| 548 |
+
max_lines=20,
|
| 549 |
+
autoscroll=True,
|
| 550 |
+
interactive=False,
|
| 551 |
+
elem_id="myco-live-log",
|
| 552 |
+
)
|
| 553 |
+
|
| 554 |
+
demo.load(fn=_stream_myco, outputs=[myco_live])
|
| 555 |
|
| 556 |
|
| 557 |
# ββ Shared output lists ββ
|