Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
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=
|
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/
|
118 |
-
['./content_images/
|
119 |
-
['./content_images/CameraGirl.jpg', 'Bokeh', 10]
|
120 |
],
|
121 |
-
inputs=[content_image, style_dropdown
|
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():
|