Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
8f69135
1
Parent(s):
b10b2ea
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ os.mkdir("outputs/images")
|
|
11 |
os.system("gdown --id '11qCXjJg0-VQaKrdufnC5-XTTQJdTHbOC'")
|
12 |
|
13 |
def inference(truncation,seed):
|
14 |
-
os.system("python generate.py --outdir=./outputs/images/ --trunc=
|
15 |
image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
|
16 |
return image
|
17 |
|
|
|
11 |
os.system("gdown --id '11qCXjJg0-VQaKrdufnC5-XTTQJdTHbOC'")
|
12 |
|
13 |
def inference(truncation,seed):
|
14 |
+
os.system("python generate.py --outdir=./outputs/images/ --trunc="+str(truncation)+" --seeds="+str(seed)+" --network=network-snapshot-000257.pkl")
|
15 |
image = Image.open(f"./outputs/images/seed{seeds:04d}.png")
|
16 |
return image
|
17 |
|