提交 bf335df6 编写于 作者: W wangxiao

update download_models.py

上级 02be87cf
......@@ -15,6 +15,10 @@
import paddlepalm as palm
import sys
items = ['ls', 'download']
assert len(sys.argv) == 3, 'please input 2 parameters.'
assert sys.argv[1] in items, '{} is not found. Support methods: {}'.format(sys.argv[1], items)
if(sys.argv[1] == 'ls'):
palm.downloader.ls(sys.argv[2])
if(sys.argv[1] == 'download'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册