arshadrana commited on
Commit
05baae4
·
verified ·
1 Parent(s): 53d5853

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,9 +5,9 @@ import dashscope
5
  from dashscope import Generation
6
 
7
  # Set up the API key for Dashscope
8
- YOUR_API_TOKEN = os.getenv('YOUR_API')
9
- dashscope.api_key = YOUR_API_TOKEN
10
- print("dashscope.api_key")
11
  app = FastAPI()
12
 
13
  math_messages = []
 
5
  from dashscope import Generation
6
 
7
  # Set up the API key for Dashscope
8
+ headers = {"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"}
9
+ dashscope.api_key = headers
10
+ print(dashscope.api_key)
11
  app = FastAPI()
12
 
13
  math_messages = []