saherPervaiz commited on
Commit
e99b5f0
·
verified ·
1 Parent(s): e4a68fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def provide_observed_advice(data):
54
  # Function to fetch health articles from the GROC API based on the query
55
  def get_health_articles(query):
56
  url = f"https://api.groc.com/search?q={query}"
57
- headers = {"Authorization": f"Bearer {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}"} # Use the demo API key in the header
58
 
59
  try:
60
  response = requests.get(url, headers=headers)
 
54
  # Function to fetch health articles from the GROC API based on the query
55
  def get_health_articles(query):
56
  url = f"https://api.groc.com/search?q={query}"
57
+ headers = {"Authorization": f"Bearer {groq_api_key}"} # Use the variable groq_api_key here
58
 
59
  try:
60
  response = requests.get(url, headers=headers)