Spaces:
Sleeping
Sleeping
Add Groq API key as a secret
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def load_instructions(file):
|
|
11 |
return '\n'.join(instructions)
|
12 |
|
13 |
def generate_question(instructions=load_instructions('./instructions.txt')):
|
14 |
-
client = Groq(api_key=os.
|
15 |
response = client.chat.completions.create(
|
16 |
model='gemma2-9b-it',
|
17 |
messages=[
|
|
|
11 |
return '\n'.join(instructions)
|
12 |
|
13 |
def generate_question(instructions=load_instructions('./instructions.txt')):
|
14 |
+
client = Groq(api_key=os.getenv('GROQ_API_KEY'))
|
15 |
response = client.chat.completions.create(
|
16 |
model='gemma2-9b-it',
|
17 |
messages=[
|