solnone commited on
Commit
7e6c715
1 Parent(s): 9b9ce5c

use whisper-large-v3-turbo

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="distil-whisper-large-v3-en",
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="llama3-70b-8192",
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}