Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def transcribe(audio, task_type):
|
|
75 |
|
76 |
# Use the pipeline to perform transcription
|
77 |
sample = {"array": waveform.squeeze().numpy(), "sampling_rate": sample_rate}
|
78 |
-
text = pipe(sample, generate_kwargs={"task": task_type})["text"]
|
79 |
|
80 |
return text
|
81 |
|
|
|
75 |
|
76 |
# Use the pipeline to perform transcription
|
77 |
sample = {"array": waveform.squeeze().numpy(), "sampling_rate": sample_rate}
|
78 |
+
text = pipe(sample, generate_kwargs={"task": task_type, "language": language})["text"]
|
79 |
|
80 |
return text
|
81 |
|