Spaces:
Sleeping
Sleeping
zhang-3000
commited on
Commit
·
ff5ac6c
1
Parent(s):
9ca6268
all3
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ callback_manager = CallbackManager()
|
|
11 |
from configparser import ConfigParser
|
12 |
|
13 |
# 通过Spaces的secret传入
|
14 |
-
api_key =
|
15 |
-
|
16 |
# 下载模型
|
17 |
os.system('git lfs install')
|
18 |
os.system('git clone https://www.modelscope.cn/Ceceliachenen/paraphrase-multilingual-MiniLM-L12-v2.git')
|
|
|
11 |
from configparser import ConfigParser
|
12 |
|
13 |
# 通过Spaces的secret传入
|
14 |
+
api_key = os.environ.get('API_KEY')
|
15 |
+
|
16 |
# 下载模型
|
17 |
os.system('git lfs install')
|
18 |
os.system('git clone https://www.modelscope.cn/Ceceliachenen/paraphrase-multilingual-MiniLM-L12-v2.git')
|