Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,19 @@
|
|
1 |
import os
|
2 |
-
|
3 |
import gradio as gr
|
4 |
from modelscope.pipelines import pipeline
|
5 |
from modelscope.outputs import OutputKeys
|
6 |
|
7 |
image_to_video_pipe = pipeline(task="image-to-video", model='damo/i2vgen-xl', model_revision='v1.1.4', device='cuda:0')
|
8 |
|
|
|
|
|
|
|
|
|
9 |
def upload_file(file):
|
10 |
return file.name
|
11 |
|
12 |
def image_to_video(image_in, text_in):
|
|
|
13 |
if image_in is None:
|
14 |
raise gr.Error('请上传图片或等待图片上传完成')
|
15 |
print(image_in)
|
|
|
1 |
import os
|
|
|
2 |
import gradio as gr
|
3 |
from modelscope.pipelines import pipeline
|
4 |
from modelscope.outputs import OutputKeys
|
5 |
|
6 |
image_to_video_pipe = pipeline(task="image-to-video", model='damo/i2vgen-xl', model_revision='v1.1.4', device='cuda:0')
|
7 |
|
8 |
+
# Get the current working directory
|
9 |
+
current_directory = os.getcwd()
|
10 |
+
print("Current Working Directory:", current_directory)
|
11 |
+
|
12 |
def upload_file(file):
|
13 |
return file.name
|
14 |
|
15 |
def image_to_video(image_in, text_in):
|
16 |
+
print("Current Working Directory:", current_directory)
|
17 |
if image_in is None:
|
18 |
raise gr.Error('请上传图片或等待图片上传完成')
|
19 |
print(image_in)
|