glt3953 commited on
Commit
d278405
1 Parent(s): 33a8656

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import gradio as gr
2
  import os
3
 
4
  # update modelscope
5
- os.system("pip install -U modelscope -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html -i https://mirror.sjtu.edu.cn/pypi/web/simple")
 
6
 
7
  import datetime
8
  from modelscope.pipelines import pipeline
 
2
  import os
3
 
4
  # update modelscope
5
+ # os.system("pip install -U modelscope -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html -i https://mirror.sjtu.edu.cn/pypi/web/simple")
6
+ os.system('pip install "modelscope[cv]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html')
7
 
8
  import datetime
9
  from modelscope.pipelines import pipeline