Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,3 @@
|
|
1 |
-
|
2 |
-
import datasets
|
3 |
-
from transformers import pipeline
|
4 |
-
from transformers.pipelines.pt_utils import KeyDataset
|
5 |
-
from tqdm.auto import tqdm
|
6 |
-
|
7 |
-
pipe = pipe = pipeline("token-classification", model="erdometo/xlm-roberta-base-finetuned-TQuad2")
|
8 |
-
dataset = datasets.load_dataset("superb", name="asr", split="test")
|
9 |
-
|
10 |
-
for out in tqdm(pipe(KeyDataset(dataset, "file"))):
|
11 |
-
print(out)
|
12 |
-
|
13 |
|
14 |
|
15 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
|
3 |
import gradio as gr
|