Spaces:
Runtime error
Runtime error
Commit
·
f443f82
1
Parent(s):
eba9818
Update app.py
Browse files
app.py
CHANGED
@@ -4,14 +4,14 @@ from transformers import pipeline
|
|
4 |
|
5 |
info = get_article()
|
6 |
|
7 |
-
article='''
|
8 |
# Team members
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
'''
|
15 |
|
16 |
#Model_1 = "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-classification-MESD"
|
17 |
#Model_2 ="hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd"
|
@@ -39,5 +39,5 @@ label = gr.outputs.Label(num_top_classes=5)
|
|
39 |
#theme="huggingface").launch()
|
40 |
|
41 |
# generate and launch interface
|
42 |
-
interface = gr.Interface(fn=classify_sentiment, inputs=input_audio, outputs=label, examples=[["basta_neutral.wav"], ["detras_disgust.wav"], ["mortal_sadness.wav"], ["respiracion_happiness.wav"], ["robo_fear.wav"]], article=article, css=info['css'], theme='huggingface', title=info['title'], allow_flagging='never', description=info['description'])
|
43 |
interface.launch()
|
|
|
4 |
|
5 |
info = get_article()
|
6 |
|
7 |
+
#article='''
|
8 |
# Team members
|
9 |
+
#- Drishti Sharma [(DrishtiSharma)](https://huggingface.co/DrishtiSharma)
|
10 |
+
#- Manuel Fernandez Moya [(Mnauel)](https://huggingface.co/Mnauel)
|
11 |
+
#- Antonio Alberto Soto Hernández [(Asotoh)](https://huggingface.co/Asotoh)
|
12 |
+
#-
|
13 |
+
#-
|
14 |
+
#'''
|
15 |
|
16 |
#Model_1 = "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-classification-MESD"
|
17 |
#Model_2 ="hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd"
|
|
|
39 |
#theme="huggingface").launch()
|
40 |
|
41 |
# generate and launch interface
|
42 |
+
interface = gr.Interface(fn=classify_sentiment, inputs=input_audio, outputs=label, examples=[["basta_neutral.wav"], ["detras_disgust.wav"], ["mortal_sadness.wav"], ["respiracion_happiness.wav"], ["robo_fear.wav"]], article=info['article'], css=info['css'], theme='huggingface', title=info['title'], allow_flagging='never', description=info['description'])
|
43 |
interface.launch()
|