decodingdatascience commited on
Commit
b766e57
·
verified ·
1 Parent(s): b1e6d37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -6,6 +6,10 @@ groq_api_key = os.getenv("GROQ_API_KEY")
6
 
7
  import gradio as gr
8
 
 
 
 
 
9
  def chat_with_groq(message):
10
  chat_completion = client.chat.completions.create(
11
  messages=[
 
6
 
7
  import gradio as gr
8
 
9
+ client = Groq(
10
+ api_key=groq_api_key,
11
+ )
12
+
13
  def chat_with_groq(message):
14
  chat_completion = client.chat.completions.create(
15
  messages=[