Spaces:
Runtime error
Runtime error
add some diff
Browse files
app.py
CHANGED
@@ -43,14 +43,6 @@ def load_img(path_to_img):
|
|
43 |
img = img[tf.newaxis, :]
|
44 |
return img
|
45 |
|
46 |
-
content_image = load_img(content_path)
|
47 |
-
style_image = load_img(style_path)
|
48 |
-
|
49 |
-
|
50 |
-
hub_model = hub.load('https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/2')
|
51 |
-
stylized_image = hub_model(tf.constant(content_image), tf.constant(style_image))[0]
|
52 |
-
print("结果:", stylized_image)
|
53 |
-
|
54 |
|
55 |
import gradio as gr
|
56 |
|
|
|
43 |
img = img[tf.newaxis, :]
|
44 |
return img
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
import gradio as gr
|
48 |
|