Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)))
|