Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,9 +39,9 @@ def generate_response(transcription, api_key):
|
|
39 |
client = groq.Client(api_key=api_key)
|
40 |
|
41 |
try:
|
42 |
-
# Use Llama 3
|
43 |
completion = client.chat.completions.create(
|
44 |
-
model="
|
45 |
messages=[
|
46 |
{"role": "system", "content": "You are a helpful assistant."},
|
47 |
{"role": "user", "content": transcription}
|
|
|
39 |
client = groq.Client(api_key=api_key)
|
40 |
|
41 |
try:
|
42 |
+
# Use Llama 3 70B powered by Groq for text generation
|
43 |
completion = client.chat.completions.create(
|
44 |
+
model="llama3-70b-8192",
|
45 |
messages=[
|
46 |
{"role": "system", "content": "You are a helpful assistant."},
|
47 |
{"role": "user", "content": transcription}
|