Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
chore: format
Browse files
app.py
CHANGED
|
@@ -4,10 +4,8 @@ import json
|
|
| 4 |
import os
|
| 5 |
from dotenv import load_dotenv
|
| 6 |
|
| 7 |
-
# 加载.env文件中的环境变量
|
| 8 |
load_dotenv()
|
| 9 |
|
| 10 |
-
# 从环境变量中读取配置
|
| 11 |
API_URL = os.getenv("API_URL")
|
| 12 |
API_TOKEN = os.getenv("API_TOKEN")
|
| 13 |
|
|
@@ -24,7 +22,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
| 24 |
|
| 25 |
def respond(
|
| 26 |
message,
|
| 27 |
-
history: list[dict],
|
| 28 |
system_message,
|
| 29 |
max_tokens,
|
| 30 |
temperature,
|
|
|
|
| 4 |
import os
|
| 5 |
from dotenv import load_dotenv
|
| 6 |
|
|
|
|
| 7 |
load_dotenv()
|
| 8 |
|
|
|
|
| 9 |
API_URL = os.getenv("API_URL")
|
| 10 |
API_TOKEN = os.getenv("API_TOKEN")
|
| 11 |
|
|
|
|
| 22 |
|
| 23 |
def respond(
|
| 24 |
message,
|
| 25 |
+
history: list[dict],
|
| 26 |
system_message,
|
| 27 |
max_tokens,
|
| 28 |
temperature,
|