Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -201,10 +201,12 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
|
| 201 |
with gr.Row():
|
| 202 |
result = ImageSlider(label="Input / Output", type="pil", interactive=True)
|
| 203 |
|
|
|
|
|
|
|
| 204 |
examples = gr.Examples(
|
| 205 |
examples=[
|
| 206 |
-
[42, False, "z1.webp", 28, 2, 0.6], #
|
| 207 |
-
[42, False, "z2.webp", 28, 2, 0.6], #
|
| 208 |
],
|
| 209 |
inputs=[
|
| 210 |
seed,
|
|
@@ -219,6 +221,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
|
| 219 |
cache_examples="lazy",
|
| 220 |
)
|
| 221 |
|
|
|
|
| 222 |
gr.on(
|
| 223 |
[run_button.click],
|
| 224 |
fn=infer,
|
|
|
|
| 201 |
with gr.Row():
|
| 202 |
result = ImageSlider(label="Input / Output", type="pil", interactive=True)
|
| 203 |
|
| 204 |
+
|
| 205 |
+
# Examples 부분만 수정된 코드
|
| 206 |
examples = gr.Examples(
|
| 207 |
examples=[
|
| 208 |
+
[42, False, "examples/z1.webp", 28, 2, 0.6], # examples 폴더 경로 추가
|
| 209 |
+
[42, False, "examples/z2.webp", 28, 2, 0.6], # examples 폴더 경로 추가
|
| 210 |
],
|
| 211 |
inputs=[
|
| 212 |
seed,
|
|
|
|
| 221 |
cache_examples="lazy",
|
| 222 |
)
|
| 223 |
|
| 224 |
+
|
| 225 |
gr.on(
|
| 226 |
[run_button.click],
|
| 227 |
fn=infer,
|