hysts HF staff commited on
Commit
6abf639
1 Parent(s): e96fada
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -199,7 +199,7 @@ class App:
199
  return img_gen
200
 
201
 
202
- def update_slider(choice: str):
203
  max_vals = {
204
  'cartoon': 316,
205
  'caricature': 198,
@@ -212,7 +212,7 @@ def update_slider(choice: str):
212
  return gr.Slider.update(maximum=max_vals[choice] + 1, value=26)
213
 
214
 
215
- def update_style_image(choice: str):
216
  style_image_path = STYLE_IMAGE_PATHS[choice]
217
  text = f'<center><img src="{style_image_path}" alt="style image" width="800" height="400"></center>'
218
  return gr.Markdown.update(value=text)
 
199
  return img_gen
200
 
201
 
202
+ def update_slider(choice: str) -> dict:
203
  max_vals = {
204
  'cartoon': 316,
205
  'caricature': 198,
 
212
  return gr.Slider.update(maximum=max_vals[choice] + 1, value=26)
213
 
214
 
215
+ def update_style_image(choice: str) -> dict:
216
  style_image_path = STYLE_IMAGE_PATHS[choice]
217
  text = f'<center><img src="{style_image_path}" alt="style image" width="800" height="400"></center>'
218
  return gr.Markdown.update(value=text)