Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,9 @@ def generate_image(
|
|
62 |
|
63 |
if seed == -1:
|
64 |
seed = random.randint(0, MAX_SEED)
|
65 |
-
|
|
|
|
|
66 |
generator = torch.Generator().manual_seed(seed)
|
67 |
|
68 |
prompt = str(translator.translate(prompt, 'English'))
|
|
|
62 |
|
63 |
if seed == -1:
|
64 |
seed = random.randint(0, MAX_SEED)
|
65 |
+
|
66 |
+
seed = float(seed)
|
67 |
+
|
68 |
generator = torch.Generator().manual_seed(seed)
|
69 |
|
70 |
prompt = str(translator.translate(prompt, 'English'))
|