Spaces:
Paused
Paused
apolinario
commited on
Commit
•
aa64bf6
1
Parent(s):
320cd35
random
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def run(user_input,num_steps, template, width,height):
|
|
92 |
|
93 |
args2 = argparse.Namespace(
|
94 |
prompt=user_input,
|
95 |
-
seed=int(
|
96 |
sizex=width,
|
97 |
sizey=height,
|
98 |
flavor=flavor,
|
@@ -108,8 +108,6 @@ def run(user_input,num_steps, template, width,height):
|
|
108 |
if args2.seed is not None:
|
109 |
import torch
|
110 |
|
111 |
-
sys.stdout.write(f"Setting seed to {args2.seed} ...\n")
|
112 |
-
sys.stdout.flush()
|
113 |
import numpy as np
|
114 |
|
115 |
np.random.seed(args2.seed)
|
|
|
92 |
|
93 |
args2 = argparse.Namespace(
|
94 |
prompt=user_input,
|
95 |
+
seed=int(random.randint(0, 2147483647)),
|
96 |
sizex=width,
|
97 |
sizey=height,
|
98 |
flavor=flavor,
|
|
|
108 |
if args2.seed is not None:
|
109 |
import torch
|
110 |
|
|
|
|
|
111 |
import numpy as np
|
112 |
|
113 |
np.random.seed(args2.seed)
|