Spaces:
Sleeping
Sleeping
File size: 249 Bytes
8694df6 | 1 2 3 4 5 6 7 8 9 10 11 12 | import uuid
from core.video_engine import generate
def create_video(prompt):
job_id = str(uuid.uuid4())
video_url = generate(prompt)
with open("jobs/queue.json", "a") as f:
f.write(f"{job_id}:{video_url}\n")
return job_id |