Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,9 +162,9 @@ def update_dimensions_from_image(image_list):
|
|
| 162 |
|
| 163 |
return new_width, new_height
|
| 164 |
|
| 165 |
-
# ⚠️ spaces.GPU duration
|
| 166 |
-
#
|
| 167 |
-
@spaces.GPU
|
| 168 |
def generate_image(prompt_embeds, image_list, width, height, num_inference_steps, guidance_scale, seed, use_turbo, progress=gr.Progress(track_tqdm=True)):
|
| 169 |
prompt_embeds = prompt_embeds.to(device)
|
| 170 |
|
|
|
|
| 162 |
|
| 163 |
return new_width, new_height
|
| 164 |
|
| 165 |
+
# ⚠️ spaces.GPU - duration 파라미터 없이 기본 사용
|
| 166 |
+
# spaces 0.43.0에서 duration 파라미터 전달 방식이 다를 수 있음
|
| 167 |
+
@spaces.GPU
|
| 168 |
def generate_image(prompt_embeds, image_list, width, height, num_inference_steps, guidance_scale, seed, use_turbo, progress=gr.Progress(track_tqdm=True)):
|
| 169 |
prompt_embeds = prompt_embeds.to(device)
|
| 170 |
|