Spaces:
Runtime error
Runtime error
add some diff
Browse files
app.py
CHANGED
@@ -23,6 +23,9 @@ def tensor_to_image(tensor):
|
|
23 |
|
24 |
import tensorflow_hub as hub
|
25 |
hub_model = hub.load('https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/2')
|
|
|
|
|
|
|
26 |
|
27 |
import gradio as gr
|
28 |
|
|
|
23 |
|
24 |
import tensorflow_hub as hub
|
25 |
hub_model = hub.load('https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/2')
|
26 |
+
stylized_image = hub_model(tf.constant(content_image), tf.constant(style_image))[0]
|
27 |
+
print("结果:", stylized_image)
|
28 |
+
|
29 |
|
30 |
import gradio as gr
|
31 |
|