Skip to content

Commit

Permalink
runner: Fixes to image-to-image/video for modal
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed Feb 29, 2024
1 parent 766ba4c commit 1d9b52b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runner/app/routes/image_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ async def image_to_image(

try:
images = pipeline(
prompt,
image,
prompt=prompt,
image=image,
strength=strength,
guidance_scale=guidance_scale,
negative_prompt=negative_prompt,
Expand Down
2 changes: 1 addition & 1 deletion runner/app/routes/image_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def image_to_video(

try:
batch_frames = pipeline(
Image.open(image.file).convert("RGB"),
image=Image.open(image.file).convert("RGB"),
height=height,
width=width,
fps=fps,
Expand Down

0 comments on commit 1d9b52b

Please sign in to comment.