Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ style_files = os.listdir('./style_images')
|
|
25 |
style_options = {' '.join(style_file.split('.')[0].split('_')): f'./style_images/{style_file}' for style_file in style_files}
|
26 |
optimal_settings = {
|
27 |
'Starry Night': (100, True),
|
28 |
-
'Lego Bricks': (
|
29 |
'Mosaic': (100, False),
|
30 |
'Oil Painting': (100, False),
|
31 |
'Scream': (75, True),
|
@@ -148,9 +148,10 @@ with gr.Blocks(css=css) as demo:
|
|
148 |
|
149 |
examples = gr.Examples(
|
150 |
examples=[
|
151 |
-
['./content_images/TajMahal.jpg', 'Starry Night',
|
152 |
-
['./content_images/GoldenRetriever.jpg', 'Lego Bricks',
|
153 |
-
['./content_images/SeaTurtle.jpg', '
|
|
|
154 |
],
|
155 |
inputs=[content_and_output, style_dropdown, style_strength_slider, output_quality]
|
156 |
)
|
|
|
25 |
style_options = {' '.join(style_file.split('.')[0].split('_')): f'./style_images/{style_file}' for style_file in style_files}
|
26 |
optimal_settings = {
|
27 |
'Starry Night': (100, True),
|
28 |
+
'Lego Bricks': (100, False),
|
29 |
'Mosaic': (100, False),
|
30 |
'Oil Painting': (100, False),
|
31 |
'Scream': (75, True),
|
|
|
148 |
|
149 |
examples = gr.Examples(
|
150 |
examples=[
|
151 |
+
['./content_images/TajMahal.jpg', 'Starry Night', *optimal_settings['Starry Night']],
|
152 |
+
['./content_images/GoldenRetriever.jpg', 'Lego Bricks', *optimal_settings['Lego Bricks']],
|
153 |
+
['./content_images/SeaTurtle.jpg', 'Oil Painting', *optimal_settings['Oil Painting']],
|
154 |
+
['./content_images/NYCSkyline.jpg', 'Scream', *optimal_settings['Scream']]
|
155 |
],
|
156 |
inputs=[content_and_output, style_dropdown, style_strength_slider, output_quality]
|
157 |
)
|