TejAndrewsACC commited on
Commit
d39f931
·
verified ·
1 Parent(s): f608a95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,11 +7,11 @@ import os
7
 
8
  hf_token = os.getenv("HF_TOKEN").strip()
9
  api_key = os.getenv("HF_KEY").strip()
 
10
 
11
- API_URL = "https://api.hyperbolic.xyz/v1/chat/completions"
12
  API_HEADERS = {
13
  "Content-Type": "application/json",
14
- "Authorization": f"Bearer {os.environ['API_TOKEN']}"
15
  }
16
 
17
 
 
7
 
8
  hf_token = os.getenv("HF_TOKEN").strip()
9
  api_key = os.getenv("HF_KEY").strip()
10
+ api_token = os.environ["API_TOKEN"].strip() # Strip whitespace from the token
11
 
 
12
  API_HEADERS = {
13
  "Content-Type": "application/json",
14
+ "Authorization": f"Bearer {api_token}" # Use the cleaned token
15
  }
16
 
17