Ahsen Khaliq commited on
Commit
cd49248
1 Parent(s): 6766e70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ os.mkdir("outputs/images")
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
  seeds = int(seeds)
17
  image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
18
  return image
 
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(int(seeds))+" --network=network-snapshot-000257.pkl")
16
  seeds = int(seeds)
17
  image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
18
  return image