File size: 396 Bytes
b0675ae
ef31016
b0675ae
04ee246
b0675ae
ef31016
d395e46
b0675ae
 
04ee246
ef31016
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from modelscope.pipelines import pipeline
from modelscope.outputs import OutputKeys

# ุชุญู…ูŠู„ ุงู„ู…ูˆุฏูŠู„ ุงู„ุตุญูŠุญ
video_gen = pipeline(
    task="text-to-video-synthesis",
    model="damo/text-to-video-synthesis"
)

# ุชูˆู„ูŠุฏ ุงู„ููŠุฏูŠูˆ ู…ู† ุงู„ู†ุต
output = video_gen({'text': 'A panda eating bamboo on a rock'})
print('โœ… Video saved to:', output[OutputKeys.OUTPUT_VIDEO])