Spaces:
Runtime error
Runtime error
test
#1
by
peaceyourself
- opened
- 0a49789142fb12b7000869ec499d0cff.jpg +0 -0
- app.py +1 -1
- presets.py +1 -1
0a49789142fb12b7000869ec499d0cff.jpg
DELETED
Binary file (269 kB)
|
|
app.py
CHANGED
@@ -15,7 +15,7 @@ logging.basicConfig(
|
|
15 |
format="%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] %(message)s",
|
16 |
)
|
17 |
|
18 |
-
my_api_key = "
|
19 |
|
20 |
# if we are running in Docker
|
21 |
if os.environ.get("dockerrun") == "yes":
|
|
|
15 |
format="%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] %(message)s",
|
16 |
)
|
17 |
|
18 |
+
my_api_key = "" # 在这里输入你的 API 密钥
|
19 |
|
20 |
# if we are running in Docker
|
21 |
if os.environ.get("dockerrun") == "yes":
|
presets.py
CHANGED
@@ -20,7 +20,7 @@ timeout_streaming = 5 # 流式对话时的超时时间
|
|
20 |
max_token_all = 3500 # 非流式对话时的最大 token 数
|
21 |
timeout_all = 200 # 非流式对话时的超时时间
|
22 |
enable_streaming_option = True # 是否启用选择选择是否实时显示回答的勾选框
|
23 |
-
HIDE_MY_KEY =
|
24 |
|
25 |
SIM_K = 5
|
26 |
INDEX_QUERY_TEMPRATURE = 1.0
|
|
|
20 |
max_token_all = 3500 # 非流式对话时的最大 token 数
|
21 |
timeout_all = 200 # 非流式对话时的超时时间
|
22 |
enable_streaming_option = True # 是否启用选择选择是否实时显示回答的勾选框
|
23 |
+
HIDE_MY_KEY = False # 如果你想在UI中隐藏你的 API 密钥,将此值设置为 True
|
24 |
|
25 |
SIM_K = 5
|
26 |
INDEX_QUERY_TEMPRATURE = 1.0
|