Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,10 +74,10 @@ def setup_retrieval(df):
|
|
74 |
# --------------------------
|
75 |
# Groq API Setup
|
76 |
# --------------------------
|
77 |
-
|
78 |
-
|
79 |
-
|
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:
|