seawolf2357 commited on
Commit
47fb78f
·
verified ·
1 Parent(s): f29d9ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # Turbo 모드: ~30초, Standard 모드: ~65초 안전하게 120초 설정
167
- @spaces.GPU(duration=120)
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