Srameo commited on
Commit
c2e58d6
·
verified ·
1 Parent(s): 5680e93

Fix the resolution

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -182,7 +182,7 @@ def generate_image(
182
  max_sequence_length=512,
183
  progress=gr.Progress(track_tqdm=True),
184
  ):
185
- height, width = get_resolution(resolution)
186
 
187
  if seed == -1:
188
  seed = torch.randint(0, 1000000, (1,)).item()
 
182
  max_sequence_length=512,
183
  progress=gr.Progress(track_tqdm=True),
184
  ):
185
+ width, height = get_resolution(resolution)
186
 
187
  if seed == -1:
188
  seed = torch.randint(0, 1000000, (1,)).item()