changxin commited on
Commit
deab034
·
1 Parent(s): 50c35c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -65,14 +65,6 @@ def fx6(img, lang):
65
  return 'result.jpg'
66
 
67
 
68
- def fx7(input_path,input_path2):
69
- input_img = load_img(input_path)
70
- input_img2 = load_img(input_path2)
71
- hub_model = hub.load('https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/2')
72
- stylized_image = hub_model(tf.constant(input_img), tf.constant(input_img2))[0]
73
- pre_img = tensor_to_image(stylized_image)
74
- return pre_img
75
-
76
  with demo:
77
  gr.Markdown(
78
  """
 
65
  return 'result.jpg'
66
 
67
 
 
 
 
 
 
 
 
 
68
  with demo:
69
  gr.Markdown(
70
  """