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