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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import os
2
  from groq import Groq
3
 
4
  groq_api_key = os.getenv("GROQ_API_KEY")
@@ -6,11 +6,12 @@ groq_api_key = os.getenv("GROQ_API_KEY")
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=[
16
  {
 
1
+ import oshttps://huggingface.co/spaces/decodingdatascience/cohort101stapp
2
  from groq import Groq
3
 
4
  groq_api_key = os.getenv("GROQ_API_KEY")
 
6
 
7
  import gradio as gr
8
 
9
+
 
 
10
 
11
  def chat_with_groq(message):
12
+ client = Groq(
13
+ api_key=groq_api_key,
14
+ )
15
  chat_completion = client.chat.completions.create(
16
  messages=[
17
  {