Spaces:
Runtime error
Runtime error
luca-martial
commited on
Commit
·
8949e37
1
Parent(s):
a61ec70
new images
Browse files
app.py
CHANGED
@@ -21,8 +21,9 @@ def stylize(content_image, style_image):
|
|
21 |
stylized_image = hub_model(tf.constant(content_image), tf.constant(style_image))[0]
|
22 |
return tensor_to_image(stylized_image)
|
23 |
|
24 |
-
|
25 |
-
|
|
|
26 |
title = "Fast Neural Style Transfer using TF-Hub"
|
27 |
description = "Demo for neural style transfer using the pretrained Arbitrary Image Stylization model from TensorFlow Hub."
|
28 |
content_input = gr.inputs.Image(label="Content Image", source="upload")
|
|
|
21 |
stylized_image = hub_model(tf.constant(content_image), tf.constant(style_image))[0]
|
22 |
return tensor_to_image(stylized_image)
|
23 |
|
24 |
+
paris =[["example_paris.jpeg"], ["example_vangogh.jpeg"]]
|
25 |
+
aristotle = [["example_aristotle.jpeg"], ["example_dali.jpeg"]]
|
26 |
+
avatar = [["example_avatar.jpeg"], ["example_kandinsky.jpeg"]]
|
27 |
title = "Fast Neural Style Transfer using TF-Hub"
|
28 |
description = "Demo for neural style transfer using the pretrained Arbitrary Image Stylization model from TensorFlow Hub."
|
29 |
content_input = gr.inputs.Image(label="Content Image", source="upload")
|