ayaderaghul commited on
Commit
2a0688b
1 Parent(s): 3b9b582

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +2 -1
  2. ex1.jpg +0 -0
  3. ex2.jpg +0 -0
app.py CHANGED
@@ -8,6 +8,7 @@ import numpy as np
8
 
9
  cust = {'InstanceNormalization': InstanceNormalization}
10
  model=load_model('g_model_AtoB_002160.h5',cust)
 
11
 
12
  def show_preds_image(image_path):
13
  A = plt.imread(image_path)
@@ -29,7 +30,7 @@ interface_image = gr.Interface(
29
  inputs=inputs_image,
30
  outputs=outputs_image,
31
  title="photo2monet",
32
- # examples=path,
33
  cache_examples=False,
34
  )
35
 
 
8
 
9
  cust = {'InstanceNormalization': InstanceNormalization}
10
  model=load_model('g_model_AtoB_002160.h5',cust)
11
+ path = [['ex1.jpg'], ['ex2.jpg']]
12
 
13
  def show_preds_image(image_path):
14
  A = plt.imread(image_path)
 
30
  inputs=inputs_image,
31
  outputs=outputs_image,
32
  title="photo2monet",
33
+ examples=path,
34
  cache_examples=False,
35
  )
36
 
ex1.jpg ADDED
ex2.jpg ADDED