jamino30 commited on
Commit
fa57e87
1 Parent(s): d879848

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -40,7 +40,7 @@ for style_name, style_img_path in style_options.items():
40
  cached_style_features[style_name] = style_features
41
 
42
  @spaces.GPU(duration=12)
43
- def run(content_image, style_name, style_strength=5):
44
  yield [None] * 3
45
  content_img, original_size = preprocess_img(content_image, img_size)
46
  content_img = content_img.to(device)
@@ -114,11 +114,10 @@ with gr.Blocks(css=css) as demo:
114
 
115
  examples = gr.Examples(
116
  examples=[
117
- ['./content_images/Surfer.jpg', 'Starry Night', 10],
118
- ['./content_images/GoldenRetriever.jpg', 'Great Wave', 5],
119
- ['./content_images/CameraGirl.jpg', 'Bokeh', 10]
120
  ],
121
- inputs=[content_image, style_dropdown, style_strength_slider]
122
  )
123
 
124
  with gr.Column():
 
40
  cached_style_features[style_name] = style_features
41
 
42
  @spaces.GPU(duration=12)
43
+ def run(content_image, style_name, style_strength=10):
44
  yield [None] * 3
45
  content_img, original_size = preprocess_img(content_image, img_size)
46
  content_img = content_img.to(device)
 
114
 
115
  examples = gr.Examples(
116
  examples=[
117
+ ['./content_images/GoldenRetriever.jpg', 'Starry Night'],
118
+ ['./content_images/CameraGirl.jpg', 'Bokeh']
 
119
  ],
120
+ inputs=[content_image, style_dropdown]
121
  )
122
 
123
  with gr.Column():