Ahsen Khaliq commited on
Commit
cad01cd
·
1 Parent(s): e5c2fbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ os.mkdir("outputs/images")
11
 
12
  os.system("gdown --id '11qCXjJg0-VQaKrdufnC5-XTTQJdTHbOC'")
13
 
14
- def inference(truncation,seed):
15
- os.system("python generate.py --outdir=./outputs/images/ --trunc="+str(truncation)+" --seeds="+str(seed)+" --network=network-snapshot-000257.pkl")
16
  image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
17
  return image
18
 
 
11
 
12
  os.system("gdown --id '11qCXjJg0-VQaKrdufnC5-XTTQJdTHbOC'")
13
 
14
+ def inference(truncation,seeds):
15
+ os.system("python generate.py --outdir=./outputs/images/ --trunc="+str(truncation)+" --seeds="+str(seeds)+" --network=network-snapshot-000257.pkl")
16
  image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
17
  return image
18