Spaces:
Running
Running
Delete test_themes.py
Browse files- test_themes.py +0 -26
test_themes.py
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
"""Test theme dropdown functionality"""
|
2 |
-
import gradio as gr
|
3 |
-
from utils import AVAILABLE_THEMES
|
4 |
-
|
5 |
-
print("Available themes:", list(AVAILABLE_THEMES.keys()))
|
6 |
-
|
7 |
-
with gr.Blocks() as demo:
|
8 |
-
gr.Markdown("# Theme Dropdown Test")
|
9 |
-
|
10 |
-
theme_dropdown = gr.Dropdown(
|
11 |
-
label="Select Theme",
|
12 |
-
choices=list(AVAILABLE_THEMES.keys()),
|
13 |
-
value="Default",
|
14 |
-
interactive=True
|
15 |
-
)
|
16 |
-
|
17 |
-
output = gr.Textbox(label="Selected Theme")
|
18 |
-
|
19 |
-
theme_dropdown.change(
|
20 |
-
lambda x: f"You selected: {x}",
|
21 |
-
inputs=[theme_dropdown],
|
22 |
-
outputs=[output]
|
23 |
-
)
|
24 |
-
|
25 |
-
if __name__ == "__main__":
|
26 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|