From 234c0c3aa79b156e746fc18cd2b8c9505a47ed4e Mon Sep 17 00:00:00 2001 From: Gene Kogan Date: Sun, 14 Jan 2024 19:05:40 -0800 Subject: [PATCH] fix bugs --- app/plugins/replicate.py | 2 +- app/routers/story.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/plugins/replicate.py b/app/plugins/replicate.py index 086753e..e5c6bd1 100644 --- a/app/plugins/replicate.py +++ b/app/plugins/replicate.py @@ -111,7 +111,7 @@ def txt2vid( interpolation_texts = "|".join(interpolation_texts) config = { - "mode": "comfy_txt2vid", + "mode": "txt2vid", "interpolation_texts": interpolation_texts, "width": width/2, "height": height/2, diff --git a/app/routers/story.py b/app/routers/story.py index f89e2bc..869a7ba 100644 --- a/app/routers/story.py +++ b/app/routers/story.py @@ -199,7 +199,7 @@ def cinema(request: CinemaRequest): ) audio_url = s3.upload(audio_bytes, "mp3") video_url = replicate.txt2vid( - interpolation_texts=[clip['image_description']], + interpolation_texts=[clip['image_description']], width=width, height=height, ) @@ -219,7 +219,7 @@ def cinema(request: CinemaRequest): else: output = replicate.txt2vid( - text_input=clip['image_description'], + interpolation_texts=[clip['image_description']], width=width, height=height, )