Spaces:
Running
Running
Franco Astegiano
commited on
Commit
•
cf448bd
1
Parent(s):
5f8fdd6
Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def perform_style_transfer(content_image, style_image):
|
|
178 |
content_image = tf.convert_to_tensor(content_image, np.float32)[tf.newaxis, ...] / 255.
|
179 |
style_image = tf.convert_to_tensor(style_image, np.float32)[tf.newaxis, ...] / 255.
|
180 |
|
181 |
-
output =
|
182 |
stylized_image = output[0]
|
183 |
|
184 |
return Image.fromarray(np.uint8(stylized_image[0] * 255))
|
|
|
178 |
content_image = tf.convert_to_tensor(content_image, np.float32)[tf.newaxis, ...] / 255.
|
179 |
style_image = tf.convert_to_tensor(style_image, np.float32)[tf.newaxis, ...] / 255.
|
180 |
|
181 |
+
output = hub_module(content_image, style_image)
|
182 |
stylized_image = output[0]
|
183 |
|
184 |
return Image.fromarray(np.uint8(stylized_image[0] * 255))
|