byte-vortex commited on
Commit
fe925fa
·
verified ·
1 Parent(s): 2dc6617

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. 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
- with gr.Tab("✨ Magic Mushroom Garden"):
203
- # Wrap everything in a Row to place text on the left and animation on the right
204
- with gr.Row(equal_height=False):
205
-
206
- # LEFT SIDE: Text and Attribution Column
207
- with gr.Column(scale=1, min_width=250):
208
- # The live narrative text
209
- narrative = gr.Markdown(
210
- value="Myco is searching for a story hidden in the moss...",
211
- elem_id="narrative-card"
212
- )
213
-
214
- # Subtle attribution right beneath the text
215
- gr.Markdown(
216
- "<sub>*Story generated by Myco AI*</sub>",
217
- elem_id="ai-attribution"
218
- )
219
-
220
- # RIGHT SIDE: The HTML Animation Column
221
- with gr.Column(scale=2):
222
- gr.HTML(value=cute_mushroom_garden_html())
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)