Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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})
|