iisadia commited on
Commit
a33aed1
·
verified ·
1 Parent(s): 886e4a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -74,10 +74,10 @@ def setup_retrieval(df):
74
  # --------------------------
75
  # Groq API Setup
76
  # --------------------------
77
- client = Groq(
78
- api_key="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",
79
- # Remove any proxy arguments if present
80
- )
81
 
82
  def movie_expert(query, context):
83
  prompt = f"""You are a film expert. Answer using this context:
 
74
  # --------------------------
75
  # Groq API Setup
76
  # --------------------------
77
+ def get_groq_client():
78
+ return Groq(
79
+ api_key=os.getenv("GROQ_API_KEY", "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")
80
+ )
81
 
82
  def movie_expert(query, context):
83
  prompt = f"""You are a film expert. Answer using this context: