iabdulahk commited on
Commit
20c22e9
·
1 Parent(s): 8abebca

Add Groq API key as a secret

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