Spaces:
Runtime error
Runtime error
Franco Astegiano
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -166,8 +166,8 @@ is the same as the content image shape.
|
|
166 |
# This is pretty fast within a few milliseconds on a GPU.
|
167 |
|
168 |
def modify(imageinput,style_input):
|
169 |
-
content_image = load_image(imageinput, content_img_size)
|
170 |
-
style_image = load_image(style_input, style_img_size)
|
171 |
style_image = tf.nn.avg_pool(style_image, ksize=[3,3], strides=[1,1], padding='SAME')
|
172 |
#show_n([content_image, style_image], ['Content image', 'Style image'])
|
173 |
outputs = hub_module(tf.constant(imageinput), tf.constant(style_input))
|
|
|
166 |
# This is pretty fast within a few milliseconds on a GPU.
|
167 |
|
168 |
def modify(imageinput,style_input):
|
169 |
+
#content_image = load_image(imageinput, content_img_size)
|
170 |
+
#style_image = load_image(style_input, style_img_size)
|
171 |
style_image = tf.nn.avg_pool(style_image, ksize=[3,3], strides=[1,1], padding='SAME')
|
172 |
#show_n([content_image, style_image], ['Content image', 'Style image'])
|
173 |
outputs = hub_module(tf.constant(imageinput), tf.constant(style_input))
|