glt3953 commited on
Commit
139a744
1 Parent(s): 6ffb6ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,10 @@ import gradio as gr
4
  import datetime
5
  import os
6
 
 
 
 
 
7
  #获取当前北京时间
8
  utc_dt = datetime.datetime.utcnow()
9
  beijing_dt = utc_dt.astimezone(datetime.timezone(datetime.timedelta(hours=16)))
 
4
  import datetime
5
  import os
6
 
7
+ os.system(
8
+ 'pip install "modelscope[cv]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html'
9
+ )
10
+
11
  #获取当前北京时间
12
  utc_dt = datetime.datetime.utcnow()
13
  beijing_dt = utc_dt.astimezone(datetime.timezone(datetime.timedelta(hours=16)))