RageshAntony commited on
Commit
b4ca06e
·
verified ·
1 Parent(s): fe79ce9

@spaces.GPU(duration=400)

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -141,7 +141,8 @@ def generate_image_on_gpu(args):
141
  print(f"Error with {model_name} on GPU {gpu_id}: {str(e)}")
142
  release_gpu(gpu_id)
143
  raise e
144
-
 
145
  def generate_all(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress()):
146
  outputs = [None] * (len(MODEL_CONFIGS) * 2)
147
 
 
141
  print(f"Error with {model_name} on GPU {gpu_id}: {str(e)}")
142
  release_gpu(gpu_id)
143
  raise e
144
+
145
+ @spaces.GPU(duration=400)
146
  def generate_all(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress()):
147
  outputs = [None] * (len(MODEL_CONFIGS) * 2)
148