wahaha commited on
Commit
5d68cfc
1 Parent(s): 100804b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,10 +54,10 @@ def run(
54
  checkpoint_dir = os.path.join(curPath, 'animeganv2/checkpoint/generator_Shinkai_weight')
55
  print(checkpoint_dir)
56
 
57
- test.test(checkpoint_dir, 'save_dir', image.name, True)
58
 
59
 
60
- return PIL.Image.open(image.name)
61
 
62
 
63
  def main():
 
54
  checkpoint_dir = os.path.join(curPath, 'animeganv2/checkpoint/generator_Shinkai_weight')
55
  print(checkpoint_dir)
56
 
57
+ outs = test.test(checkpoint_dir, 'save_dir', image.name, True)
58
 
59
 
60
+ return PIL.Image.open(outs[0])
61
 
62
 
63
  def main():