Switch to LTX-2-3-First-Last-Frame to avoid ZeroGPU quota exhaustion
Browse files
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("
|
| 32 |
result = client.predict(
|
| 33 |
-
|
| 34 |
-
|
|
|
|
| 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 |
)
|