Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- ui/interface.py +21 -24
ui/interface.py
CHANGED
|
@@ -199,27 +199,24 @@ def render_shroom_tab():
|
|
| 199 |
renders empty and the Timer never fires.
|
| 200 |
"""
|
| 201 |
with gr.Tabs():
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
# Timer updates the single narrative component on the left side
|
| 225 |
-
gr.Timer(20).tick(fn=get_myco_narrative, outputs=narrative)
|
|
|
|
| 199 |
renders empty and the Timer never fires.
|
| 200 |
"""
|
| 201 |
with gr.Tabs():
|
| 202 |
+
with gr.Tab("✨ Magic Mushroom Garden"):
|
| 203 |
+
# Create a relative container to allow absolute stacking inside it
|
| 204 |
+
with gr.Box(elem_id="garden-container"):
|
| 205 |
+
|
| 206 |
+
# The narrative text card (positioned absolutely via CSS)
|
| 207 |
+
narrative = gr.Markdown(
|
| 208 |
+
value="Myco is searching for a story hidden in the moss...",
|
| 209 |
+
elem_id="narrative-card"
|
| 210 |
+
)
|
| 211 |
+
|
| 212 |
+
# Subtle attribution placed right beneath the narrative card
|
| 213 |
+
attribution = gr.Markdown(
|
| 214 |
+
"<sub>*Story generated by Myco AI*</sub>",
|
| 215 |
+
elem_id="ai-attribution"
|
| 216 |
+
)
|
| 217 |
+
|
| 218 |
+
# The pure HTML animation sits natively underneath the text
|
| 219 |
+
gr.HTML(value=cute_mushroom_garden_html())
|
| 220 |
+
|
| 221 |
+
# Timer updates the text component
|
| 222 |
+
gr.Timer(20).tick(fn=get_myco_narrative, outputs=narrative)
|
|
|
|
|
|
|
|
|