Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ css = """
|
|
104 |
with gr.Blocks(css=css) as demo:
|
105 |
gr.HTML("<h1 style='text-align: center; padding: 10px'>🖼️ Neural Style Transfer</h1>")
|
106 |
with gr.Column(elem_id='container'):
|
107 |
-
content_and_output = gr.Image(show_label=False, type='pil', sources=['upload'], format='jpg', show_download_button=False)
|
108 |
style_dropdown = gr.Radio(choices=list(style_options.keys()), label='Style', info='Note: Adjustments automatically optimize for different styles.', value='Starry Night', type='value')
|
109 |
with gr.Accordion('Adjustments', open=False):
|
110 |
with gr.Group():
|
@@ -148,10 +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', 'Oil Painting'
|
154 |
-
['./content_images/NYCSkyline.jpg', 'Scream'
|
155 |
],
|
156 |
inputs=[content_and_output, style_dropdown, style_strength_slider, output_quality]
|
157 |
)
|
|
|
104 |
with gr.Blocks(css=css) as demo:
|
105 |
gr.HTML("<h1 style='text-align: center; padding: 10px'>🖼️ Neural Style Transfer</h1>")
|
106 |
with gr.Column(elem_id='container'):
|
107 |
+
content_and_output = gr.Image(label='Content', show_label=False, type='pil', sources=['upload'], format='jpg', show_download_button=False)
|
108 |
style_dropdown = gr.Radio(choices=list(style_options.keys()), label='Style', info='Note: Adjustments automatically optimize for different styles.', value='Starry Night', type='value')
|
109 |
with gr.Accordion('Adjustments', open=False):
|
110 |
with gr.Group():
|
|
|
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', 'Oil Painting'],
|
154 |
+
['./content_images/NYCSkyline.jpg', 'Scream']
|
155 |
],
|
156 |
inputs=[content_and_output, style_dropdown, style_strength_slider, output_quality]
|
157 |
)
|