jamino30 commited on
Commit
99de4ca
1 Parent(s): d8b281a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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', *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
  )
 
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
  )