Update app.py
Browse files
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=[
|