Spaces:
Sleeping
Sleeping
Deploy Myco from GitHub Actions
Browse files- ui/gradio_app.py +2 -1
ui/gradio_app.py
CHANGED
|
@@ -60,6 +60,8 @@ def mushroom_card_from_state(current: MushroomState | None) -> str:
|
|
| 60 |
|
| 61 |
|
| 62 |
def build_app() -> gr.Blocks:
|
|
|
|
|
|
|
| 63 |
"""Build the Gradio interface for Hugging Face Spaces."""
|
| 64 |
theme = gr.themes.Soft(primary_hue="green", secondary_hue="emerald")
|
| 65 |
with gr.Blocks(title="Myco") as demo:
|
|
@@ -112,5 +114,4 @@ def build_app() -> gr.Blocks:
|
|
| 112 |
study_button.click(study_mushroom, inputs=[current_mushroom, chat], outputs=[current_mushroom, discovery, chat])
|
| 113 |
eat_button.click(eat_mushroom, inputs=[current_mushroom, chat], outputs=[chat])
|
| 114 |
|
| 115 |
-
demo._theme = theme
|
| 116 |
return demo
|
|
|
|
| 60 |
|
| 61 |
|
| 62 |
def build_app() -> gr.Blocks:
|
| 63 |
+
theme = gr.themes.Soft(primary_hue="green", secondary_hue="emerald")
|
| 64 |
+
with gr.Blocks(title="Myco", theme=theme) as demo: # ← theme goes here
|
| 65 |
"""Build the Gradio interface for Hugging Face Spaces."""
|
| 66 |
theme = gr.themes.Soft(primary_hue="green", secondary_hue="emerald")
|
| 67 |
with gr.Blocks(title="Myco") as demo:
|
|
|
|
| 114 |
study_button.click(study_mushroom, inputs=[current_mushroom, chat], outputs=[current_mushroom, discovery, chat])
|
| 115 |
eat_button.click(eat_mushroom, inputs=[current_mushroom, chat], outputs=[chat])
|
| 116 |
|
|
|
|
| 117 |
return demo
|