Spaces:
Runtime error
Runtime error
Aravind Sundaresan
commited on
Commit
·
8aefbbd
1
Parent(s):
92b7091
Added example
Browse files- app.py +5 -1
- examples/golden_gate_bridge.jpeg +0 -0
- examples/the_great_wave.jpeg +0 -0
app.py
CHANGED
|
@@ -20,9 +20,13 @@ def perform_style_transfer(content_image, style_image):
|
|
| 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 |
-
description="Gradio demo for Fast Neural Style Transfer using a pretrained Image Stylization model from TensorFlow Hub. To use it, simply upload a content image and style image, or click one of the examples to load them. To learn more about the project, please find the references listed below."
|
|
|
|
| 28 |
app_interface.launch()
|
|
|
|
| 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 |
+
# Examples
|
| 24 |
+
golden_gate = ["examples/golden_gate_bridge.jpeg", "examples/the_great_wave.jpeg"]
|
| 25 |
+
|
| 26 |
app_interface = gr.Interface(fn=perform_style_transfer,
|
| 27 |
inputs=[content_image_input, style_image_input],
|
| 28 |
outputs="image",
|
| 29 |
title="Fast Neural Style Transfer",
|
| 30 |
+
description="Gradio demo for Fast Neural Style Transfer using a pretrained Image Stylization model from TensorFlow Hub. To use it, simply upload a content image and style image, or click one of the examples to load them. To learn more about the project, please find the references listed below.",
|
| 31 |
+
examples=[golden_gate])
|
| 32 |
app_interface.launch()
|
examples/golden_gate_bridge.jpeg
ADDED
|
examples/the_great_wave.jpeg
ADDED
|