multimodalart HF Staff commited on
Commit
e525699
·
verified ·
1 Parent(s): 9c01f36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 not input_image or not output_image:
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):