Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
6766e70
1
Parent(s):
cad01cd
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ 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 |
|
|
|
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
|
19 |
|