Spaces:
Runtime error
Runtime error
Commit
·
755c0b3
1
Parent(s):
4d728a6
Update app.py
Browse filesRemoved the miku image. thanks nocrypt for the amazing theme
app.py
CHANGED
@@ -62,27 +62,30 @@ with gr.Blocks(theme='NoCrypt/miku') as demo:
|
|
62 |
)
|
63 |
check = gr.Checkbox(label="Go")
|
64 |
with gr.Column(variant="panel", scale=2):
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
69 |
with gr.Row():
|
70 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
71 |
clear_btn = gr.Button(
|
72 |
"Clear", label="Secondary Button", variant="secondary"
|
73 |
)
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
78 |
|
79 |
-
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
84 |
|
85 |
-
clear_btn.click(clear, None, img)
|
86 |
|
87 |
with gr.Row():
|
88 |
btn1 = gr.Button("Button 1").style(size="sm")
|
|
|
62 |
)
|
63 |
check = gr.Checkbox(label="Go")
|
64 |
with gr.Column(variant="panel", scale=2):
|
65 |
+
# Commented out the image
|
66 |
+
# img = gr.Image(
|
67 |
+
# "https://i.ibb.co/F4hKFrZ/dark-miku.webp",
|
68 |
+
# label="Image",
|
69 |
+
# ).style(height=320)
|
70 |
with gr.Row():
|
71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
72 |
clear_btn = gr.Button(
|
73 |
"Clear", label="Secondary Button", variant="secondary"
|
74 |
)
|
75 |
|
76 |
+
# Commented out the function that returns an image
|
77 |
+
# def go(*args):
|
78 |
+
# time.sleep(3)
|
79 |
+
# return "https://i.ibb.co/0rfK9Wm/light-miku-faded.webp"
|
80 |
|
81 |
+
# go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
82 |
|
83 |
+
# Commented out the function that clears the image
|
84 |
+
# def clear():
|
85 |
+
# time.sleep(0.2)
|
86 |
+
# return None
|
87 |
|
88 |
+
# clear_btn.click(clear, None, img)
|
89 |
|
90 |
with gr.Row():
|
91 |
btn1 = gr.Button("Button 1").style(size="sm")
|