Spaces:
Build error
Build error
Download app.py from marahaa/ModelScope: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/marahaa/ModelScope/resolve/main/app.py
- Command line
-
hf download hf://spaces/marahaa/ModelScope/app.py
-
curl -L -o app.py https://huggingface.co/spaces/marahaa/ModelScope/resolve/main/app.py
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]) | |