Spaces:
Runtime error
Runtime error
Commit
•
f6b7d38
1
Parent(s):
532dea0
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
dropdown, js = create_theme_dropdown()
|
8 |
|
9 |
with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
|
10 |
-
with gr.Row()
|
11 |
with gr.Column(scale=10):
|
12 |
gr.Markdown(
|
13 |
"""
|
@@ -20,7 +20,7 @@ with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
|
|
20 |
with gr.Column(scale=3):
|
21 |
with gr.Box():
|
22 |
dropdown.render()
|
23 |
-
toggle_dark = gr.Button(value="Toggle Dark")
|
24 |
|
25 |
dropdown.change(None, dropdown, None, _js=js)
|
26 |
toggle_dark.click(
|
@@ -65,8 +65,8 @@ with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
|
|
65 |
check = gr.Checkbox(label="Go")
|
66 |
with gr.Column(variant="panel", scale=2):
|
67 |
img = gr.Image(
|
68 |
-
"https://gradio.app/assets/img/header-image.jpg", label="Image"
|
69 |
-
)
|
70 |
with gr.Row():
|
71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
72 |
clear_btn = gr.Button(
|
@@ -86,11 +86,9 @@ with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
|
|
86 |
clear_btn.click(clear, None, img)
|
87 |
|
88 |
with gr.Row():
|
89 |
-
btn1 = gr.Button("Button 1").
|
90 |
-
btn2 = gr.UploadButton()
|
91 |
-
stop_btn = gr.Button("Stop", label="Stop Button", variant="stop")
|
92 |
-
size="sm"
|
93 |
-
)
|
94 |
|
95 |
with gr.Row():
|
96 |
gr.Dataframe(value=[[1, 2, 3], [4, 5, 6], [7, 8, 9]], label="Dataframe")
|
@@ -117,7 +115,7 @@ with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
|
|
117 |
"tower",
|
118 |
),
|
119 |
]
|
120 |
-
)
|
121 |
|
122 |
with gr.Row():
|
123 |
with gr.Column(scale=2):
|
|
|
7 |
dropdown, js = create_theme_dropdown()
|
8 |
|
9 |
with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
|
10 |
+
with gr.Row():
|
11 |
with gr.Column(scale=10):
|
12 |
gr.Markdown(
|
13 |
"""
|
|
|
20 |
with gr.Column(scale=3):
|
21 |
with gr.Box():
|
22 |
dropdown.render()
|
23 |
+
toggle_dark = gr.Button(value="Toggle Dark")
|
24 |
|
25 |
dropdown.change(None, dropdown, None, _js=js)
|
26 |
toggle_dark.click(
|
|
|
65 |
check = gr.Checkbox(label="Go")
|
66 |
with gr.Column(variant="panel", scale=2):
|
67 |
img = gr.Image(
|
68 |
+
"https://gradio.app/assets/img/header-image.jpg", label="Image", height=320
|
69 |
+
)
|
70 |
with gr.Row():
|
71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
72 |
clear_btn = gr.Button(
|
|
|
86 |
clear_btn.click(clear, None, img)
|
87 |
|
88 |
with gr.Row():
|
89 |
+
btn1 = gr.Button("Button 1").
|
90 |
+
btn2 = gr.UploadButton()
|
91 |
+
stop_btn = gr.Button("Stop", label="Stop Button", variant="stop")
|
|
|
|
|
92 |
|
93 |
with gr.Row():
|
94 |
gr.Dataframe(value=[[1, 2, 3], [4, 5, 6], [7, 8, 9]], label="Dataframe")
|
|
|
115 |
"tower",
|
116 |
),
|
117 |
]
|
118 |
+
)
|
119 |
|
120 |
with gr.Row():
|
121 |
with gr.Column(scale=2):
|