avacaondata commited on
Commit
0443cd3
1 Parent(s): f48a5e3

por fin corregido problema links, añadido ejemplo nuevo

Browse files
Files changed (1) hide show
  1. article_app.py +33 -19
article_app.py CHANGED
@@ -2,36 +2,39 @@ article = """
2
  <img src="https://www.iic.uam.es/wp-content/uploads/2017/12/IIC_logoP.png">
3
  <img src="https://drive.google.com/uc?export=view&id=1S8v94q39QRCfmVTMvjLCACmhMe9lJQdc">
4
 
5
- <p style="text-align: justify;"> This app is developed by <a href="https://www.iic.uam.es/">IIC - Instituto de Ingeniería del Conocimiento</a> as part of the <a href="https://www.eventbrite.com/e/registro-hackathon-de-pln-en-espanol-273014111557">Somos PLN Hackaton 2022.</a>
6
 
7
  Concretely, the members of the team are:
8
 
9
- 1. Alejandro Vaca Serrano: <a href="https://huggingface.co/avacaondata">@avacaondata</a>
10
- 2. David Betancur Sánchez: <a href="https://huggingface.co/Dabs">@Dabs</a>
11
- 3. Alba Segurado: <a href="https://huggingface.co/alborotis">@alborotis</a>
12
- 4. Álvaro Barbero Jiménez: <a href="https://huggingface.co/albarji">@albarji</a>
13
- 5. Guillem García Subies: <a href="https://huggingface.co/GuillemGSubies">@GuillemGSubies</a>
 
 
14
 
15
  The objective of this app is to expand the existing tools regarding long form question answering in Spanish. In fact, multiple novel methods (in Spanish)
16
  have been introduced to build this app.
17
  The reason for including audio as a possible input and always as an output is because we wanted to make the App much more accessible to people that cannot read or write.
18
  Below you can find all the pieces that form the system.
19
-
20
- 1. <a href="https://hf.co/IIC/wav2vec2-spanish-multilibrispeech">Speech2Text</a>: For this we finedtuned a multilingual Wav2Vec2, as explained in the attached link. We use this model to process audio questions.
21
- 2. <a href="https://hf.co/IIC/dpr-spanish-passage_encoder-allqa-base">Dense Passage Retrieval for Context</a>: Dense Passage Retrieval is a methodology <a href="https://arxiv.org/abs/2004.04906">developed by Facebook</a> which is currently the SoTA for Passage Retrieval,
22
- that is, the task of getting the most relevant passages to answer a given question with. You can find details about how it was trained on the link attached to the name.
23
- 3. <a href="https://hf.co/IIC/dpr-spanish-question_encoder-allqa-base">Dense Passage Retrieval for Question</a>: It is actually part of the same thing as the above. For more details, go to the attached link.
24
- 4. <a href="https://hf.co/sentence-transformers/distiluse-base-multilingual-cased-v1">Sentence Encoder Ranker</a>: To rerank the candidate contexts retrieved by dpr for the generative model to see. This also selects the top 5 passages for the model to read, it is the final filter before the generative model.
25
- 5. <a href="https://hf.co/IIC/mt5-base-lfqa-es">Generative Long-Form Question Answering Model</a>: For this we used either mT5 (the one attached) or <a href="https://hf.co/IIC/mbart-large-lfqa-es">mBART</a>. This generative model receives the most relevant
26
- passages and uses them to generate an answer to the question. In the attached link there are more details about how we trained it etc.
27
 
28
  On the other hand, we uploaded, and in some cases created, datasets in Spanish to be able to build such a system.
29
 
30
- 1. <a href="https://hf.co/datasets/IIC/spanish_biomedical_crawled_corpus">Spanish Biomedical Crawled Corpus</a>. Used for finding answers to questions about biomedicine. (More info in the link.)
31
- 2. <a href="https://hf.co/datasets/IIC/lfqa_spanish">LFQA_Spanish</a>. Used for training the generative model. (More info in the link.)
32
- 3. <a href="https://hf.co/datasets/squad_es">SQUADES</a>. Used to train the DPR models. (More info in the link.)
33
- 4. <a href="https://hf.co/datasets/IIC/bioasq22_es">BioAsq22-Spanish</a>. Used to train the DPR models. (More info in the link.)
34
- 5. <a href="https://hf.co/datasets/PlanTL-GOB-ES/SQAC">SQAC (Spanish Question Answering Corpus)</a>. Used to train the DPR models. (More info in the link.)
 
 
35
  </p>
36
  """
37
  # 1HOzvvgDLFNTK7tYAY1dRzNiLjH41fZks
@@ -79,6 +82,17 @@ examples = [
79
  250,
80
  False,
81
  ],
 
 
 
 
 
 
 
 
 
 
 
82
  [
83
  "¿Por qué sentimos ansiedad?",
84
  "vacio.flac",
 
2
  <img src="https://www.iic.uam.es/wp-content/uploads/2017/12/IIC_logoP.png">
3
  <img src="https://drive.google.com/uc?export=view&id=1S8v94q39QRCfmVTMvjLCACmhMe9lJQdc">
4
 
5
+ <p style="text-align: justify;"> This app is developed by <a href="https://www.iic.uam.es/">IIC - Instituto de Ingeniería del Conocimiento</a> as part of the <a href="https://www.eventbrite.com/e/registro-hackathon-de-pln-en-espanol-273014111557">Somos PLN Hackaton 2022.</a>
6
 
7
  Concretely, the members of the team are:
8
 
9
+ <ol>
10
+ <li>Alejandro Vaca Serrano: <a href="https://huggingface.co/avacaondata">@avacaondata</a></li>
11
+ <li>David Betancur Sánchez: <a href="https://huggingface.co/Dabs">@Dabs</a></li>
12
+ <li>Alba Segurado: <a href="https://huggingface.co/alborotis">@alborotis</a></li>
13
+ <li>Álvaro Barbero Jiménez: <a href="https://huggingface.co/albarji">@albarji</a></li>
14
+ <li>Guillem García Subies: <a href="https://huggingface.co/GuillemGSubies">@GuillemGSubies</a></li>
15
+ </ol>
16
 
17
  The objective of this app is to expand the existing tools regarding long form question answering in Spanish. In fact, multiple novel methods (in Spanish)
18
  have been introduced to build this app.
19
  The reason for including audio as a possible input and always as an output is because we wanted to make the App much more accessible to people that cannot read or write.
20
  Below you can find all the pieces that form the system.
21
+ <ol>
22
+ <li><a href="https://hf.co/IIC/wav2vec2-spanish-multilibrispeech">Speech2Text</a>: For this we finedtuned a multilingual Wav2Vec2, as explained in the attached link. We use this model to process audio questions.</li>
23
+ <li><a href="https://hf.co/IIC/dpr-spanish-passage_encoder-allqa-base">Dense Passage Retrieval for Context</a>: Dense Passage Retrieval is a methodology <a href="https://arxiv.org/abs/2004.04906">developed by Facebook</a> which is currently the SoTA for Passage Retrieval, that is, the task of getting the most relevant passages to answer a given question with. You can find details about how it was trained on the link attached to the name. </li>
24
+ <li><a href="https://hf.co/IIC/dpr-spanish-question_encoder-allqa-base">Dense Passage Retrieval for Question</a>: It is actually part of the same thing as the above. For more details, go to the attached link.</li>
25
+ <li><a href="https://hf.co/sentence-transformers/distiluse-base-multilingual-cased-v1">Sentence Encoder Ranker</a>: To rerank the candidate contexts retrieved by dpr for the generative model to see. This also selects the top 5 passages for the model to read, it is the final filter before the generative model.</li>
26
+ <li><a href="https://hf.co/IIC/mt5-base-lfqa-es">Generative Long-Form Question Answering Model</a>: For this we used either mT5 (the one attached) or <a href="https://hf.co/IIC/mbart-large-lfqa-es">mBART</a>. This generative model receives the most relevant passages and uses them to generate an answer to the question. In the attached link there are more details about how we trained it etc.</li>
27
+ </ol>
 
28
 
29
  On the other hand, we uploaded, and in some cases created, datasets in Spanish to be able to build such a system.
30
 
31
+ <ol>
32
+ <li><a href="https://hf.co/datasets/IIC/spanish_biomedical_crawled_corpus">Spanish Biomedical Crawled Corpus</a>. Used for finding answers to questions about biomedicine. (More info in the link.)</li>
33
+ <li><a href="https://hf.co/datasets/IIC/lfqa_spanish">LFQA_Spanish</a>. Used for training the generative model. (More info in the link.)</li>
34
+ <li><a href="https://hf.co/datasets/squad_es">SQUADES</a>. Used to train the DPR models. (More info in the link.)</li>
35
+ <li><a href="https://hf.co/datasets/IIC/bioasq22_es">BioAsq22-Spanish</a>. Used to train the DPR models. (More info in the link.)</li>
36
+ <li><a href="https://hf.co/datasets/PlanTL-GOB-ES/SQAC">SQAC (Spanish Question Answering Corpus)</a>. Used to train the DPR models. (More info in the link.)</li>
37
+ </ol>
38
  </p>
39
  """
40
  # 1HOzvvgDLFNTK7tYAY1dRzNiLjH41fZks
 
82
  250,
83
  False,
84
  ],
85
+ [
86
+ "¿Qué es la anorexia?",
87
+ "vacio.flac",
88
+ "vacio.flac",
89
+ 60,
90
+ 8,
91
+ 3,
92
+ 1.0,
93
+ 250,
94
+ False,
95
+ ],
96
  [
97
  "¿Por qué sentimos ansiedad?",
98
  "vacio.flac",