Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def translate_and_transcribe(inputs, previous_transcription):
|
|
63 |
sample_rate, audio_data = inputs
|
64 |
scipy.io.wavfile.write(filename, sample_rate, audio_data)
|
65 |
|
66 |
-
translation = pipe(filename,
|
67 |
|
68 |
previous_transcription += translation
|
69 |
|
|
|
63 |
sample_rate, audio_data = inputs
|
64 |
scipy.io.wavfile.write(filename, sample_rate, audio_data)
|
65 |
|
66 |
+
translation = pipe(filename, generate_kwargs={"task": "translate", "language": "<|es|>"} )["text"]
|
67 |
|
68 |
previous_transcription += translation
|
69 |
|