hysts HF staff commited on
Commit
5d5e688
·
1 Parent(s): 873974f
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,7 +211,7 @@ def update_slider(choice: str) -> dict:
211
  'pixar': 121,
212
  'slamdunk': 119,
213
  }
214
- return gr.Slider.update(maximum=max_vals[choice] + 1, value=26)
215
 
216
 
217
  def update_style_image(style_name: str) -> dict:
@@ -288,7 +288,7 @@ Related App: https://huggingface.co/spaces/hysts/DualStyleGAN
288
  label='Style Type')
289
  with gr.Column():
290
  style_index = gr.Slider(0,
291
- 317,
292
  value=26,
293
  step=1,
294
  label='Style Image Index',
 
211
  'pixar': 121,
212
  'slamdunk': 119,
213
  }
214
+ return gr.Slider.update(maximum=max_vals[choice], value=26)
215
 
216
 
217
  def update_style_image(style_name: str) -> dict:
 
288
  label='Style Type')
289
  with gr.Column():
290
  style_index = gr.Slider(0,
291
+ 316,
292
  value=26,
293
  step=1,
294
  label='Style Image Index',