Spaces:
Running
Running
Update config.py
#52
by
Lilyadfade
- opened
- README.md +1 -1
- config.py +4 -4
- requirements.txt +1 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 😻
|
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
python_version: 3.11
|
9 |
app_file: main.py
|
10 |
pinned: false
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.28.3
|
8 |
python_version: 3.11
|
9 |
app_file: main.py
|
10 |
pinned: false
|
config.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
# [step 1]>> 例如: API_KEY = "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" (此key无效)
|
2 |
-
API_KEY = "sk
|
3 |
|
4 |
# [step 2]>> 改为True应用代理,如果直接在海外服务器部署,此处不修改
|
5 |
-
USE_PROXY =
|
6 |
if USE_PROXY:
|
7 |
# 填写格式是 [协议]:// [地址] :[端口],填写之前不要忘记把USE_PROXY改成True,如果直接在海外服务器部署,此处不修改
|
8 |
# 例如 "socks5h://localhost:11284"
|
@@ -13,8 +13,8 @@ if USE_PROXY:
|
|
13 |
# 代理网络的地址,打开你的*学*网软件查看代理的协议(socks5/http)、地址(localhost)和端口(11284)
|
14 |
proxies = {
|
15 |
# [协议]:// [地址] :[端口]
|
16 |
-
"http": "
|
17 |
-
"https": "
|
18 |
}
|
19 |
else:
|
20 |
proxies = None
|
|
|
1 |
# [step 1]>> 例如: API_KEY = "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" (此key无效)
|
2 |
+
API_KEY = "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" # 可同时填写多个API-KEY,用英文逗号分割,例如API_KEY = "sk-openaikey1,sk-openaikey2,fkxxxx-api2dkey1,fkxxxx-api2dkey2"
|
3 |
|
4 |
# [step 2]>> 改为True应用代理,如果直接在海外服务器部署,此处不修改
|
5 |
+
USE_PROXY = True
|
6 |
if USE_PROXY:
|
7 |
# 填写格式是 [协议]:// [地址] :[端口],填写之前不要忘记把USE_PROXY改成True,如果直接在海外服务器部署,此处不修改
|
8 |
# 例如 "socks5h://localhost:11284"
|
|
|
13 |
# 代理网络的地址,打开你的*学*网软件查看代理的协议(socks5/http)、地址(localhost)和端口(11284)
|
14 |
proxies = {
|
15 |
# [协议]:// [地址] :[端口]
|
16 |
+
"http": "http://127.0.0.1:4780", # 再例如 "http": "http://127.0.0.1:7890",
|
17 |
+
"https": "http://127.0.0.1:4780", # 再例如 "https": "http://127.0.0.1:7890",
|
18 |
}
|
19 |
else:
|
20 |
proxies = None
|
requirements.txt
CHANGED
@@ -15,3 +15,4 @@ openai
|
|
15 |
numpy
|
16 |
arxiv
|
17 |
pymupdf
|
|
|
|
15 |
numpy
|
16 |
arxiv
|
17 |
pymupdf
|
18 |
+
|