Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
|
4 |
+
pipe = pipeline(task="automatic-speech-recognition",
|
5 |
+
model="nvidia/canary-1b")
|
6 |
+
gr.Interface.from_pipeline(pipe,
|
7 |
+
title="Automatic Speech Recognition (ASR)",
|
8 |
+
description="Using pipeline with NVIDIA Canary",
|
9 |
+
).launch(inbrowser=True)
|