Aravind Sundaresan commited on
Commit
fa100f9
1 Parent(s): c0dcd2d

Customizing UI components

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -17,10 +17,11 @@ def perform_style_transfer(content_image, style_image):
17
  return Image.fromarray(np.uint8(stylized_image[0] * 255))
18
 
19
 
20
- content_image_input = gr.inputs.Image()
21
- style_image_input = gr.inputs.Image(shape=(256, 256))
22
 
23
  app_interface = gr.Interface(fn=perform_style_transfer,
24
- inputs=[content_image_input, style_image_input],
25
- outputs="image")
 
26
  app_interface.launch()
 
17
  return Image.fromarray(np.uint8(stylized_image[0] * 255))
18
 
19
 
20
+ content_image_input = gr.inputs.Image(label="Content Image")
21
+ style_image_input = gr.inputs.Image(shape=(256, 256), label="Style Image")
22
 
23
  app_interface = gr.Interface(fn=perform_style_transfer,
24
+ inputs=[content_image_input, style_image_input],
25
+ outputs="image",
26
+ title="Fast Neural Style Transfer")
27
  app_interface.launch()