ModelScope / app.py
marahaa's picture
Update app.py
04ee246 verified
Raw
History Blame Contribute Delete
396 Bytes
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])