takarajordan commited on
Commit
d7ede14
1 Parent(s): 8848584

fixed seeds

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def infer(
66
  prompt: str,
67
  aspect_ratio: str,
68
  width: int,
69
- seed: int = 42,
70
  randomize_seed: bool = False,
71
  num_inference_steps: int = 4,
72
  progress: Any = gr.Progress(track_tqdm=True)
 
66
  prompt: str,
67
  aspect_ratio: str,
68
  width: int,
69
+ seed: Any = 42, # Change type hint to Any to handle both string and int inputs
70
  randomize_seed: bool = False,
71
  num_inference_steps: int = 4,
72
  progress: Any = gr.Progress(track_tqdm=True)