amannnnn commited on
Commit
3b0083b
·
verified ·
1 Parent(s): e7390df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,12 +1,9 @@
1
  import gradio as gr
2
- from transformers import RobertaTokenizerFast, TFRobertaForSequenceClassification, pipeline
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)