byte-vortex commited on
Commit
0d894c2
·
verified ·
1 Parent(s): 9b46e21

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. ui/interface.py +22 -17
ui/interface.py CHANGED
@@ -200,21 +200,26 @@ def render_shroom_tab():
200
  """
201
  with gr.Tabs():
202
  with gr.Tab("✨ Magic Mushroom Garden"):
203
- # The pure animation
204
- gr.HTML(value=cute_mushroom_garden_html())
205
-
206
- # Subtle attribution
207
- gr.Markdown(
208
- "<sub>*Story generated by Myco AI*</sub>",
209
- elem_id="ai-attribution"
210
- )
211
-
212
- # Define the narrative component ONCE
213
- narrative = gr.Markdown(
214
- value="Myco is searching for a story hidden in the moss...",
215
- elem_id="narrative-card"
216
- )
217
-
218
- # Timer updates the ONE narrative component
 
 
 
 
 
 
219
  gr.Timer(20).tick(fn=get_myco_narrative, outputs=narrative)
220
-
 
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)