Spaces:
Runtime error
Runtime error
Commit
·
59ea3c4
1
Parent(s):
466a88b
updated application file
Browse files
app.py
CHANGED
@@ -7,13 +7,11 @@ import gradio as gr
|
|
7 |
import pandas as pd
|
8 |
from transformers import pipeline, RobertaTokenizerFast, TFRobertaForSequenceClassification
|
9 |
|
10 |
-
!python -m spacy download en_core_web_sm
|
11 |
-
|
12 |
asr = pipeline('automatic-speech-recognition', model='facebook/wav2vec2-large-960h-lv60-self')
|
13 |
tokenizer = RobertaTokenizerFast.from_pretrained("arpanghoshal/EmoRoBERTa")
|
14 |
model = TFRobertaForSequenceClassification.from_pretrained("arpanghoshal/EmoRoBERTa")
|
15 |
emo = pipeline('sentiment-analysis', model='arpanghoshal/EmoRoBERTa')
|
16 |
-
lang_model = spacy.load("en_core_web_sm")
|
17 |
|
18 |
def transcribe_and_describe(audio):
|
19 |
|
|
|
7 |
import pandas as pd
|
8 |
from transformers import pipeline, RobertaTokenizerFast, TFRobertaForSequenceClassification
|
9 |
|
|
|
|
|
10 |
asr = pipeline('automatic-speech-recognition', model='facebook/wav2vec2-large-960h-lv60-self')
|
11 |
tokenizer = RobertaTokenizerFast.from_pretrained("arpanghoshal/EmoRoBERTa")
|
12 |
model = TFRobertaForSequenceClassification.from_pretrained("arpanghoshal/EmoRoBERTa")
|
13 |
emo = pipeline('sentiment-analysis', model='arpanghoshal/EmoRoBERTa')
|
14 |
+
lang_model = spacy.load("spacy/en_core_web_sm")
|
15 |
|
16 |
def transcribe_and_describe(audio):
|
17 |
|