Legola commited on
Commit
0799656
·
1 Parent(s): 65947c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -95,13 +95,10 @@ def run_style_transfer(cnn, normalization_mean, normalization_std,
95
 
96
  #example_images
97
  example_list = [["examples/" + example] for example in os.listdir("examples")]
98
- print(example_list)
99
- img_1 = example_list[0][0]
100
- img_2 = example_list[1][0]
101
- print(img_1)
102
- print(img_2)
103
  #Defining the predict function
104
- def style_transfer(cont_img=Image.open(img_1).convert('RGB'),styl_img=Image.open(img_2).convert('RGB')):
105
 
106
  #Start the timer
107
  start_time = time.time()
 
95
 
96
  #example_images
97
  example_list = [["examples/" + example] for example in os.listdir("examples")]
98
+
99
+
 
 
 
100
  #Defining the predict function
101
+ def style_transfer(cont_img=Image.open(example_list[0][0]).convert('RGB'),styl_img=Image.open(example_list[1][0]).convert('RGB')):
102
 
103
  #Start the timer
104
  start_time = time.time()