Nick088 commited on
Commit
35e9eef
1 Parent(s): c6cf034

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -6,7 +6,9 @@ import gradio as gr
6
  from groq import Groq
7
 
8
  def generate_response(prompt, history, model, temperature, max_tokens, top_p):
9
- client = Groq()
 
 
10
 
11
  stream = client.chat.completions.create(
12
  messages=[
 
6
  from groq import Groq
7
 
8
  def generate_response(prompt, history, model, temperature, max_tokens, top_p):
9
+ client = Groq(
10
+ api_key = os.environ.get("Groq_Api_Key")
11
+ )
12
 
13
  stream = client.chat.completions.create(
14
  messages=[