Spaces:
Running
Running
add example background
Browse files- myapp/app.py +2 -2
- myapp/example.webp +0 -0
myapp/app.py
CHANGED
@@ -38,7 +38,7 @@ with gr.Blocks() as demo:
|
|
38 |
|
39 |
with gr.Column():
|
40 |
output = gr.Image()
|
41 |
-
background = gr.Image(visible=False, type="filepath")
|
42 |
scale = gr.Slider(3, 15, 9, step=1, label="Scale")
|
43 |
|
44 |
with gr.Row():
|
@@ -99,7 +99,7 @@ with gr.Blocks() as demo:
|
|
99 |
return primary, secondary
|
100 |
|
101 |
gr.on(
|
102 |
-
[button.click, prompt.submit],
|
103 |
partial(gr.update, interactive=False),
|
104 |
outputs=button,
|
105 |
).then(
|
|
|
38 |
|
39 |
with gr.Column():
|
40 |
output = gr.Image()
|
41 |
+
background = gr.Image("example.webp", visible=False, type="filepath")
|
42 |
scale = gr.Slider(3, 15, 9, step=1, label="Scale")
|
43 |
|
44 |
with gr.Row():
|
|
|
99 |
return primary, secondary
|
100 |
|
101 |
gr.on(
|
102 |
+
[button.click, prompt.submit, demo.load],
|
103 |
partial(gr.update, interactive=False),
|
104 |
outputs=button,
|
105 |
).then(
|
myapp/example.webp
ADDED
![]() |