Spaces:
Runtime error
Runtime error
Commit
·
c72c353
1
Parent(s):
3326022
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
pipe = pipeline(model="hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd")
|
| 5 |
|
| 6 |
def classify_sentiment(audio):
|
| 7 |
sentiment_classifier = pipe(audio)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
pipe = pipeline("audio-classification", model="hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd")
|
| 5 |
|
| 6 |
def classify_sentiment(audio):
|
| 7 |
sentiment_classifier = pipe(audio)
|