clove1002 Claude Sonnet 4.6 commited on
Commit
3c1f649
·
1 Parent(s): 35c03fb

Switch to LTX-2-3-First-Last-Frame to avoid ZeroGPU quota exhaustion

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -28,10 +28,11 @@ async def generate_timelapse(
28
  with open(end_path, "wb") as f:
29
  shutil.copyfileobj(end_frame.file, f)
30
 
31
- client = Client("multimodalart/wan-2-2-first-last-frame")
32
  result = client.predict(
33
- start_image_pil=handle_file(start_path),
34
- end_image_pil=handle_file(end_path),
 
35
  prompt=prompt,
36
  api_name="/generate_video",
37
  )
 
28
  with open(end_path, "wb") as f:
29
  shutil.copyfileobj(end_frame.file, f)
30
 
31
+ client = Client("linoyts/LTX-2-3-First-Last-Frame")
32
  result = client.predict(
33
+ first_image=handle_file(start_path),
34
+ last_image=handle_file(end_path),
35
+ input_audio=None,
36
  prompt=prompt,
37
  api_name="/generate_video",
38
  )