Spaces:
Runtime error
Runtime error
sanchit-gandhi
commited on
Commit
·
985c6bd
1
Parent(s):
275d7e8
use timestamps for large-v2
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ pipe = pipeline(
|
|
| 39 |
torch_dtype=torch_dtype,
|
| 40 |
device=device,
|
| 41 |
generate_kwargs={"language": "en", "task": "transcribe"},
|
|
|
|
| 42 |
)
|
| 43 |
pipe_forward = pipe._forward
|
| 44 |
|
|
@@ -144,7 +145,7 @@ if __name__ == "__main__":
|
|
| 144 |
)
|
| 145 |
gr.Markdown("## Examples")
|
| 146 |
gr.Examples(
|
| 147 |
-
[["./assets/example_1.wav"]],
|
| 148 |
audio,
|
| 149 |
outputs=[distil_transcription, distil_runtime, transcription, runtime],
|
| 150 |
fn=transcribe,
|
|
|
|
| 39 |
torch_dtype=torch_dtype,
|
| 40 |
device=device,
|
| 41 |
generate_kwargs={"language": "en", "task": "transcribe"},
|
| 42 |
+
return_timestamps=True
|
| 43 |
)
|
| 44 |
pipe_forward = pipe._forward
|
| 45 |
|
|
|
|
| 145 |
)
|
| 146 |
gr.Markdown("## Examples")
|
| 147 |
gr.Examples(
|
| 148 |
+
[["./assets/example_1.wav", "./assets/example_2.wav"]],
|
| 149 |
audio,
|
| 150 |
outputs=[distil_transcription, distil_runtime, transcription, runtime],
|
| 151 |
fn=transcribe,
|