Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,6 @@ init_predictor('i2v')
|
|
| 46 |
def generate_video(prompt, image, predictor):
|
| 47 |
from diffusers.utils import export_to_video
|
| 48 |
from diffusers.utils import load_image
|
| 49 |
-
global predictor
|
| 50 |
if image == None:
|
| 51 |
return "Error: For i2v, provide image path.", "{}"
|
| 52 |
if not isinstance(prompt, str):
|
|
|
|
| 46 |
def generate_video(prompt, image, predictor):
|
| 47 |
from diffusers.utils import export_to_video
|
| 48 |
from diffusers.utils import load_image
|
|
|
|
| 49 |
if image == None:
|
| 50 |
return "Error: For i2v, provide image path.", "{}"
|
| 51 |
if not isinstance(prompt, str):
|