lowesyang commited on
Commit
b9c7bd3
·
1 Parent(s): 0c41d6c

chore: format

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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,