Itcast commited on
Commit
99399cc
·
1 Parent(s): aed8aca

add some diff

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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