Jordan Legg commited on
Commit
53d7a45
1 Parent(s): 85963e9

santized seeds so they are interpreted correctly

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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: