Spaces:
Runtime error
Runtime error
Commit
·
673aba3
1
Parent(s):
87d2c68
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ whisper_model = whisper.load_model("small")
|
|
| 13 |
|
| 14 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
| 15 |
|
| 16 |
-
emotion_classifier = pipeline("text-classification",model='bhadresh-savani/distilbert-base-uncased-emotion'
|
| 17 |
|
| 18 |
def translate_and_classify(audio):
|
| 19 |
|
|
|
|
| 13 |
|
| 14 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
| 15 |
|
| 16 |
+
emotion_classifier = pipeline("text-classification",model='bhadresh-savani/distilbert-base-uncased-emotion')
|
| 17 |
|
| 18 |
def translate_and_classify(audio):
|
| 19 |
|