Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- ui/interface.py +1 -2
ui/interface.py
CHANGED
|
@@ -200,7 +200,6 @@ def get_myco_narrative():
|
|
| 200 |
return f"{story}\n\n<sub style='display: block; opacity: 0.6; margin-top: 0.75rem;'>Story generated by Myco AI</sub>"
|
| 201 |
|
| 202 |
|
| 203 |
-
# Inside your Gradio Interface definition:
|
| 204 |
with gr.Tabs():
|
| 205 |
with gr.Tab("✨ Magic Mushroom Garden"):
|
| 206 |
# The pure animation
|
|
@@ -215,8 +214,8 @@ with gr.Tabs():
|
|
| 215 |
# Define the narrative component ONCE
|
| 216 |
narrative = gr.Markdown(
|
| 217 |
value="Myco is searching for a story hidden in the moss...",
|
|
|
|
| 218 |
)
|
| 219 |
|
| 220 |
# Timer updates the ONE narrative component
|
| 221 |
gr.Timer(20).tick(fn=get_myco_narrative, outputs=narrative)
|
| 222 |
-
|
|
|
|
| 200 |
return f"{story}\n\n<sub style='display: block; opacity: 0.6; margin-top: 0.75rem;'>Story generated by Myco AI</sub>"
|
| 201 |
|
| 202 |
|
|
|
|
| 203 |
with gr.Tabs():
|
| 204 |
with gr.Tab("✨ Magic Mushroom Garden"):
|
| 205 |
# The pure animation
|
|
|
|
| 214 |
# Define the narrative component ONCE
|
| 215 |
narrative = gr.Markdown(
|
| 216 |
value="Myco is searching for a story hidden in the moss...",
|
| 217 |
+
elem_id="narrative-card"
|
| 218 |
)
|
| 219 |
|
| 220 |
# Timer updates the ONE narrative component
|
| 221 |
gr.Timer(20).tick(fn=get_myco_narrative, outputs=narrative)
|
|
|