Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,16 +2,15 @@ import os
|
|
2 |
import streamlit as st
|
3 |
import torch
|
4 |
|
5 |
-
# Attempt to import the required pipeline
|
6 |
try:
|
7 |
from diffusers import CogVideoXImageToVideoPipeline
|
8 |
pipeline_available = True
|
9 |
-
st.write("CogVideoXImageToVideoPipeline successfully imported.")
|
10 |
except ImportError as e:
|
11 |
pipeline_available = False
|
12 |
-
st.error("Failed to import CogVideoXImageToVideoPipeline.
|
13 |
st.write(f"Debug info: {e}")
|
14 |
|
|
|
15 |
# Streamlit interface
|
16 |
st.title("Image to Video with Hugging Face")
|
17 |
st.write("Upload an image and provide a prompt to generate a video.")
|
|
|
2 |
import streamlit as st
|
3 |
import torch
|
4 |
|
|
|
5 |
try:
|
6 |
from diffusers import CogVideoXImageToVideoPipeline
|
7 |
pipeline_available = True
|
|
|
8 |
except ImportError as e:
|
9 |
pipeline_available = False
|
10 |
+
st.error("Failed to import CogVideoXImageToVideoPipeline.")
|
11 |
st.write(f"Debug info: {e}")
|
12 |
|
13 |
+
|
14 |
# Streamlit interface
|
15 |
st.title("Image to Video with Hugging Face")
|
16 |
st.write("Upload an image and provide a prompt to generate a video.")
|