SaladSlayer00 commited on
Commit
e12b0ce
1 Parent(s): 654acdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -40,8 +40,7 @@ def fetch_info(celebrity_label):
40
 
41
  api_url = f'https://api.api-ninjas.com/v1/celebrity?name={formatted_label}'
42
 
43
- token = os.environ.get('TOKEN')
44
- token = token.decode("utf-8")
45
  response = requests.get(api_url, headers={'X-Api-Key': token})
46
  if response.status_code == 200:
47
  return format_info(response.text)
 
40
 
41
  api_url = f'https://api.api-ninjas.com/v1/celebrity?name={formatted_label}'
42
 
43
+ token = os.getenv('AWS_SECRET_ACCESS_KEY')
 
44
  response = requests.get(api_url, headers={'X-Api-Key': token})
45
  if response.status_code == 200:
46
  return format_info(response.text)