Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def provide_observed_advice(data):
|
|
42 |
def get_health_advice_from_groq(query):
|
43 |
try:
|
44 |
# Sending request to GROQ API
|
45 |
-
chat_completion =
|
46 |
messages=[{
|
47 |
"role": "user",
|
48 |
"content": query
|
|
|
42 |
def get_health_advice_from_groq(query):
|
43 |
try:
|
44 |
# Sending request to GROQ API
|
45 |
+
chat_completion = groq_api_key.chat.completions.create(
|
46 |
messages=[{
|
47 |
"role": "user",
|
48 |
"content": query
|