fantaxy commited on
Commit
d0f30fa
·
verified ·
1 Parent(s): 7eda2e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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],