Spaces:
Running
on
Zero
Running
on
Zero
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,
|
@@ -218,8 +220,6 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
|
|
218 |
outputs=result,
|
219 |
cache_examples="lazy",
|
220 |
)
|
221 |
-
|
222 |
-
|
223 |
|
224 |
gr.on(
|
225 |
[run_button.click],
|
|
|
201 |
with gr.Row():
|
202 |
result = ImageSlider(label="Input / Output", type="pil", interactive=True)
|
203 |
|
204 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
205 |
+
|
206 |
examples = gr.Examples(
|
207 |
examples=[
|
208 |
+
[42, False, os.path.join(current_dir, "z1.webp"), 28, 2, 0.6],
|
209 |
+
[42, False, os.path.join(current_dir, "z2.webp"), 28, 2, 0.6],
|
210 |
],
|
211 |
inputs=[
|
212 |
seed,
|
|
|
220 |
outputs=result,
|
221 |
cache_examples="lazy",
|
222 |
)
|
|
|
|
|
223 |
|
224 |
gr.on(
|
225 |
[run_button.click],
|