ford442 commited on
Commit
d81a8be
Β·
1 Parent(s): 9e1dbe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -134,7 +134,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
134
  seed = random.randint(0, MAX_SEED)
135
  return seed
136
 
137
- @spaces.GPU(duration=80)
138
  def generate(
139
  model_choice: str,
140
  prompt: str,
@@ -145,7 +145,7 @@ def generate(
145
  width: int = 768,
146
  height: int = 768,
147
  guidance_scale: float = 5,
148
- num_inference_steps: int = 225,
149
  randomize_seed: bool = False,
150
  use_resolution_binning: bool = True,
151
  num_images: int = 1,
@@ -349,7 +349,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
349
  minimum=10,
350
  maximum=1000,
351
  step=10,
352
- value=225,
353
  )
354
 
355
  gr.Examples(
 
134
  seed = random.randint(0, MAX_SEED)
135
  return seed
136
 
137
+ @spaces.GPU(duration=45)
138
  def generate(
139
  model_choice: str,
140
  prompt: str,
 
145
  width: int = 768,
146
  height: int = 768,
147
  guidance_scale: float = 5,
148
+ num_inference_steps: int = 255,
149
  randomize_seed: bool = False,
150
  use_resolution_binning: bool = True,
151
  num_images: int = 1,
 
349
  minimum=10,
350
  maximum=1000,
351
  step=10,
352
+ value=255,
353
  )
354
 
355
  gr.Examples(