Spaces:
Runtime error
Runtime error
Commit
·
91d7849
1
Parent(s):
a450122
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,17 +4,8 @@ from transformers import pipeline
|
|
| 4 |
|
| 5 |
info = get_article()
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 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"
|
| 18 |
|
| 19 |
#model_name2id = {"Model A": "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-classification-MESD", "Model B": "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd"}
|
| 20 |
|
|
@@ -28,11 +19,7 @@ label = gr.outputs.Label(num_top_classes=5)
|
|
| 28 |
|
| 29 |
################### Gradio Web APP ################################
|
| 30 |
|
| 31 |
-
description = """ Gradio demo for Sentiment Classification of Spanish audios using Wav2Vec2.
|
| 32 |
-
|
| 33 |
-
We trained two models : [Model 1](https://huggingface.co/hackathon-pln-es/wav2vec2-base-finetuned-sentiment-classification-MESD)
|
| 34 |
-
|
| 35 |
-
[Model 2](https://huggingface.co/hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd)
|
| 36 |
"""
|
| 37 |
#gr.Interface(
|
| 38 |
#fn = classify_sentiment,
|
|
|
|
| 4 |
|
| 5 |
info = get_article()
|
| 6 |
|
| 7 |
+
|
| 8 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
#model_name2id = {"Model A": "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-classification-MESD", "Model B": "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd"}
|
| 11 |
|
|
|
|
| 19 |
|
| 20 |
################### Gradio Web APP ################################
|
| 21 |
|
| 22 |
+
description = """ Gradio demo for Sentiment Classification of Spanish audios using Wav2Vec2. This app can be powered by either of these two trained models :1. [Model 1](https://huggingface.co/hackathon-pln-es/wav2vec2-base-finetuned-sentiment-classification-MESD) 2. [Model 2](https://huggingface.co/hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"""
|
| 24 |
#gr.Interface(
|
| 25 |
#fn = classify_sentiment,
|