Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- ui/gradio_app.py +15 -15
ui/gradio_app.py
CHANGED
|
@@ -458,6 +458,20 @@ def build_app():
|
|
| 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,21 +552,7 @@ def build_app():
|
|
| 538 |
|
| 539 |
with gr.Tab("π Myco"):
|
| 540 |
render_shroom_tab()
|
| 541 |
-
|
| 542 |
-
# Persistent live panel β sits below the tabs, visible on every tab.
|
| 543 |
-
# Streams Myco's full log: narrative ([NARRATIVE]), in-game action
|
| 544 |
-
# reactions ([ACTION]), and chat replies ([CHAT]).
|
| 545 |
-
myco_live = gr.Textbox(
|
| 546 |
-
label="π Myco's live log (narrative / action / chat)",
|
| 547 |
-
value="π Myco is listening...",
|
| 548 |
-
lines=10,
|
| 549 |
-
max_lines=20,
|
| 550 |
-
autoscroll=True,
|
| 551 |
-
interactive=False,
|
| 552 |
-
elem_id="myco-live-log",
|
| 553 |
-
)
|
| 554 |
-
|
| 555 |
-
demo.load(fn=_stream_myco, outputs=[myco_live])
|
| 556 |
|
| 557 |
# ββ Shared output lists ββ
|
| 558 |
_move_outputs = [
|
|
|
|
| 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 |
|
| 553 |
with gr.Tab("π Myco"):
|
| 554 |
render_shroom_tab()
|
| 555 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 556 |
|
| 557 |
# ββ Shared output lists ββ
|
| 558 |
_move_outputs = [
|