Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,9 +152,9 @@ def infer_camera_edit(
|
|
| 152 |
|
| 153 |
def create_video_between_images(input_image: str, output_image: str, prompt: str) -> str:
|
| 154 |
"""Create a video between the input and output images."""
|
| 155 |
-
if
|
| 156 |
raise gr.Error("Both input and output images are required to create a video.")
|
| 157 |
-
|
| 158 |
try:
|
| 159 |
# Save images to temporary files if they're not already file paths
|
| 160 |
if isinstance(input_image, Image.Image):
|
|
|
|
| 152 |
|
| 153 |
def create_video_between_images(input_image: str, output_image: str, prompt: str) -> str:
|
| 154 |
"""Create a video between the input and output images."""
|
| 155 |
+
if input_image is None or output_image is None:
|
| 156 |
raise gr.Error("Both input and output images are required to create a video.")
|
| 157 |
+
|
| 158 |
try:
|
| 159 |
# Save images to temporary files if they're not already file paths
|
| 160 |
if isinstance(input_image, Image.Image):
|