Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 {
|
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)
|