amirkhanbloch commited on
Commit
6f12044
·
verified ·
1 Parent(s): d7f31cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ from PIL import Image
11
 
12
 
13
  # 设置API密钥
14
- YOUR_API_TOKEN = os.getenv('api_token')
15
- dashscope.api_key = YOUR_API_TOKEN
16
  math_messages = []
17
  def process_image(image, shouldConvert=False):
18
  # 获取上传文件的目录
 
11
 
12
 
13
  # 设置API密钥
14
+ headers = {"Authorization": f"Bearer {os.getenv('YOUR_API')}"}
15
+ dashscope.api_key = headers
16
  math_messages = []
17
  def process_image(image, shouldConvert=False):
18
  # 获取上传文件的目录