Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,7 @@ from email.mime.multipart import MIMEMultipart
|
|
| 10 |
import requests
|
| 11 |
import json
|
| 12 |
from groq import Groq
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
|
|
@@ -74,7 +75,7 @@ def get_weekly_pred(url):
|
|
| 74 |
def predict_horoscope(m_sign, f_sign,strtime,m_daily_pred,f_daily_pred,m_monthly_pred,f_monthly_pred,m_weekly_pred,f_weekly_pred):
|
| 75 |
# Add your horoscope prediction logic here
|
| 76 |
client = Groq()
|
| 77 |
-
client = Groq(api_key =
|
| 78 |
chatresponse = client.chat.completions.create(
|
| 79 |
model="mixtral-8x7b-32768",
|
| 80 |
messages=[
|
|
|
|
| 10 |
import requests
|
| 11 |
import json
|
| 12 |
from groq import Groq
|
| 13 |
+
import os
|
| 14 |
|
| 15 |
|
| 16 |
|
|
|
|
| 75 |
def predict_horoscope(m_sign, f_sign,strtime,m_daily_pred,f_daily_pred,m_monthly_pred,f_monthly_pred,m_weekly_pred,f_weekly_pred):
|
| 76 |
# Add your horoscope prediction logic here
|
| 77 |
client = Groq()
|
| 78 |
+
client = Groq(api_key = os.getenv("GROQ_API_KEY"))
|
| 79 |
chatresponse = client.chat.completions.create(
|
| 80 |
model="mixtral-8x7b-32768",
|
| 81 |
messages=[
|