Steveeeeeeen HF Staff commited on
Commit
2afbde9
·
verified ·
1 Parent(s): 88c0791

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def transcribe(audio: tuple[int, np.ndarray], transformers_chat: list[dict], con
43
  # Generate a response from the pipeline using the audio input
44
  output = pipe(
45
  {"audio": audio_sr, "turns": tf_input, "sampling_rate": target_sr},
46
- max_new_tokens=512,
47
  )
48
  # Transcribe the audio using Whisper
49
  transcription = whisper({"array": audio_sr.squeeze(), "sampling_rate": target_sr})
 
43
  # Generate a response from the pipeline using the audio input
44
  output = pipe(
45
  {"audio": audio_sr, "turns": tf_input, "sampling_rate": target_sr},
46
+ max_new_tokens=2048,
47
  )
48
  # Transcribe the audio using Whisper
49
  transcription = whisper({"array": audio_sr.squeeze(), "sampling_rate": target_sr})