Spaces:
Runtime error
Runtime error
Aravind Sundaresan
commited on
Commit
·
fa100f9
1
Parent(s):
c0dcd2d
Customizing UI components
Browse files
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 |
-
|
| 25 |
-
|
|
|
|
| 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()
|