Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ from PIL import Image
|
|
11 |
|
12 |
|
13 |
# 设置API密钥
|
14 |
-
|
15 |
-
dashscope.api_key =
|
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 |
# 获取上传文件的目录
|