Spaces:
Running
on
Zero
Running
on
Zero
Jordan Legg
commited on
Commit
·
53d7a45
1
Parent(s):
85963e9
santized seeds so they are interpreted correctly
Browse files
app.py
CHANGED
|
@@ -77,6 +77,9 @@ def infer(
|
|
| 77 |
|
| 78 |
if randomize_seed:
|
| 79 |
seed = get_random_seed()
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
ratio = validate_aspect_ratio(aspect_ratio)
|
| 82 |
if ratio is None:
|
|
|
|
| 77 |
|
| 78 |
if randomize_seed:
|
| 79 |
seed = get_random_seed()
|
| 80 |
+
else:
|
| 81 |
+
# Convert seed to int if it's a string
|
| 82 |
+
seed = int(seed)
|
| 83 |
|
| 84 |
ratio = validate_aspect_ratio(aspect_ratio)
|
| 85 |
if ratio is None:
|