Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -150,7 +150,7 @@ def infer_camera_edit(
|
|
| 150 |
|
| 151 |
return result, seed, prompt
|
| 152 |
|
| 153 |
-
def create_video_between_images(input_image, output_image, 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.")
|
|
@@ -192,7 +192,8 @@ def create_video_between_images(input_image, output_image, prompt: str) -> str:
|
|
| 192 |
video_path = _generate_video_segment(
|
| 193 |
input_image_path,
|
| 194 |
output_image_path,
|
| 195 |
-
prompt if prompt else "Camera movement transformation"
|
|
|
|
| 196 |
)
|
| 197 |
return video_path
|
| 198 |
except Exception as e:
|
|
|
|
| 150 |
|
| 151 |
return result, seed, prompt
|
| 152 |
|
| 153 |
+
def create_video_between_images(input_image, output_image, prompt: str, request: gr.Request) -> 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.")
|
|
|
|
| 192 |
video_path = _generate_video_segment(
|
| 193 |
input_image_path,
|
| 194 |
output_image_path,
|
| 195 |
+
prompt if prompt else "Camera movement transformation",
|
| 196 |
+
request
|
| 197 |
)
|
| 198 |
return video_path
|
| 199 |
except Exception as e:
|