Spaces:
Sleeping
Sleeping
use whisper-large-v3-turbo
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def transcribe_audio(audio, api_key):
|
|
24 |
try:
|
25 |
# Use Distil-Whisper English powered by Groq for transcription
|
26 |
completion = client.audio.transcriptions.create(
|
27 |
-
model="
|
28 |
file=("audio.wav", buffer),
|
29 |
response_format="text"
|
30 |
)
|
@@ -41,7 +41,7 @@ def generate_response(transcription, api_key):
|
|
41 |
try:
|
42 |
# Use Llama 3 70B powered by Groq for text generation
|
43 |
completion = client.chat.completions.create(
|
44 |
-
model="
|
45 |
messages=[
|
46 |
{"role": "system", "content": "You are a helpful assistant."},
|
47 |
{"role": "user", "content": transcription}
|
|
|
24 |
try:
|
25 |
# Use Distil-Whisper English powered by Groq for transcription
|
26 |
completion = client.audio.transcriptions.create(
|
27 |
+
model="whisper-large-v3-turbo",
|
28 |
file=("audio.wav", buffer),
|
29 |
response_format="text"
|
30 |
)
|
|
|
41 |
try:
|
42 |
# Use Llama 3 70B powered by Groq for text generation
|
43 |
completion = client.chat.completions.create(
|
44 |
+
model="llama-3.1-8b-instant",
|
45 |
messages=[
|
46 |
{"role": "system", "content": "You are a helpful assistant."},
|
47 |
{"role": "user", "content": transcription}
|