Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
from transformers import
|
3 |
import whisper
|
4 |
|
5 |
model = whisper.load_model('base')
|
6 |
|
7 |
-
tokenizer = RobertaTokenizerFast.from_pretrained("arpanghoshal/EmoRoBERTa")
|
8 |
-
model2 = TFRobertaForSequenceClassification.from_pretrained("arpanghoshal/EmoRoBERTa")
|
9 |
-
|
10 |
emotion = pipeline('sentiment-analysis', model='arpanghoshal/EmoRoBERTa')
|
11 |
|
12 |
classifier = pipeline(task="text-classification", model="SamLowe/roberta-base-go_emotions", top_k=None)
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
import whisper
|
4 |
|
5 |
model = whisper.load_model('base')
|
6 |
|
|
|
|
|
|
|
7 |
emotion = pipeline('sentiment-analysis', model='arpanghoshal/EmoRoBERTa')
|
8 |
|
9 |
classifier = pipeline(task="text-classification", model="SamLowe/roberta-base-go_emotions", top_k=None)
|