Spaces:
Runtime error
Runtime error
Commit
·
47969b8
1
Parent(s):
af8be4b
Update app.py
Browse filesforgot to comment properly :p
app.py
CHANGED
@@ -62,7 +62,7 @@ with gr.Blocks(theme='NoCrypt/miku') as demo:
|
|
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 |
"https://gradio.app/assets/img/header-image.jpg",
|
@@ -74,14 +74,13 @@ with gr.Blocks(theme='NoCrypt/miku') as demo:
|
|
74 |
"Clear", label="Secondary Button", variant="secondary"
|
75 |
)
|
76 |
|
77 |
-
Commented out
|
78 |
def go(*args):
|
79 |
time.sleep(3)
|
80 |
return "https://gradio.app/assets/img/header-image.jpg"#"https://i.ibb.co/0rfK9Wm/light-miku-faded.webp"
|
81 |
|
82 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
83 |
|
84 |
-
Commented out the function that clears the image
|
85 |
def clear():
|
86 |
time.sleep(0.2)
|
87 |
return None
|
|
|
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 |
"https://gradio.app/assets/img/header-image.jpg",
|
|
|
74 |
"Clear", label="Secondary Button", variant="secondary"
|
75 |
)
|
76 |
|
77 |
+
#Commented out returning image and placed an invalid image link
|
78 |
def go(*args):
|
79 |
time.sleep(3)
|
80 |
return "https://gradio.app/assets/img/header-image.jpg"#"https://i.ibb.co/0rfK9Wm/light-miku-faded.webp"
|
81 |
|
82 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
83 |
|
|
|
84 |
def clear():
|
85 |
time.sleep(0.2)
|
86 |
return None
|