EinsteinCoder commited on
Commit
b36c6b5
·
verified ·
1 Parent(s): 3870a72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 = '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')
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=[