eranlevinlt commited on
Commit
75b6e6e
·
1 Parent(s): 34ebe71
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -165,8 +165,8 @@ def generate_video(image_path=None, prompt="", negative_prompt="",
165
 
166
  if image_path:
167
  media_items = load_image_to_tensor_with_resize(image_path, height, width).to(device)
168
- else:
169
- raise ValueError("Image path must be provided.")
170
 
171
  sample = {
172
  "prompt": prompt,
 
165
 
166
  if image_path:
167
  media_items = load_image_to_tensor_with_resize(image_path, height, width).to(device)
168
+ media_items=None
169
+
170
 
171
  sample = {
172
  "prompt": prompt,