Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -185,7 +185,9 @@ def generate_image(chose_emb, choice, gender_GAN, prompts_array):
|
|
| 185 |
os.makedirs(save_dir, exist_ok=True)
|
| 186 |
|
| 187 |
new_seed = random.randint(0, 2**32 - 1)
|
|
|
|
| 188 |
torch.manual_seed(new_seed)
|
|
|
|
| 189 |
random_embedding = torch.randn(1, 1, input_dim).to(device)
|
| 190 |
print(random_embedding)
|
| 191 |
if choice == "Create a new character":
|
|
|
|
| 185 |
os.makedirs(save_dir, exist_ok=True)
|
| 186 |
|
| 187 |
new_seed = random.randint(0, 2**32 - 1)
|
| 188 |
+
print(new_seed)
|
| 189 |
torch.manual_seed(new_seed)
|
| 190 |
+
|
| 191 |
random_embedding = torch.randn(1, 1, input_dim).to(device)
|
| 192 |
print(random_embedding)
|
| 193 |
if choice == "Create a new character":
|