Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
cad01cd
1
Parent(s):
e5c2fbc
Update app.py
Browse files
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,
|
15 |
-
os.system("python generate.py --outdir=./outputs/images/ --trunc="+str(truncation)+" --seeds="+str(
|
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 |
|