Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -156,33 +156,33 @@ def compare_question_answering_spanish(context, question):
|
|
156 |
bloom_answer = bloom_question_answering(context, question)
|
157 |
return f"""
|
158 |
<div>
|
159 |
-
<h2 style='color: #2e8b57; font-weight: bold;'>Respuestas:</h2>
|
160 |
</div><br>
|
161 |
-
<div>
|
162 |
<strong>ConfliBERT-Spanish-Beto-Cased-NewsQA:</strong><br>{confli_answer_spanish}</div><br>
|
163 |
-
<div>
|
164 |
<strong>Beto-Spanish-Cased-NewsQA:</strong><br>{beto_answer_spanish}
|
165 |
</div><br>
|
166 |
-
<div>
|
167 |
<strong>ConfliBERT-Spanish-Beto-Cased-SQAC:</strong><br>{confli_sqac_answer_spanish}
|
168 |
</div><br>
|
169 |
-
<div>
|
170 |
<strong>Beto-Spanish-Cased-SQAC:</strong><br>{beto_sqac_answer_spanish}
|
171 |
</div><br>
|
172 |
-
<div>
|
173 |
<strong>GPT-2-Small-Spanish:</strong><br>{gpt2_answer_spanish}
|
174 |
</div><br>
|
175 |
-
<div>
|
176 |
<strong>BLOOM-1.7B:</strong><br>{bloom_answer}
|
177 |
</div><br>
|
178 |
-
<div>
|
179 |
<strong>Informaci贸n del modelo:</strong><br>
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
</div>
|
187 |
"""
|
188 |
|
@@ -202,12 +202,12 @@ css_styles = """
|
|
202 |
color: #ff8c00;
|
203 |
}
|
204 |
h2 {
|
205 |
-
color: #
|
206 |
text-align: center;
|
207 |
font-size: 1.5em;
|
208 |
}
|
209 |
.description {
|
210 |
-
color:
|
211 |
display: block;
|
212 |
font-size: 1em;
|
213 |
text-align: center;
|
@@ -216,11 +216,9 @@ css_styles = """
|
|
216 |
text-align: center;
|
217 |
margin-top: 10px;
|
218 |
font-size: 0.9em;
|
219 |
-
color: #666;
|
220 |
width: 100%;
|
221 |
}
|
222 |
.footer a {
|
223 |
-
color: #2e8b57;
|
224 |
font-weight: bold;
|
225 |
text-decoration: none;
|
226 |
}
|
@@ -237,18 +235,18 @@ demo = gr.Interface(
|
|
237 |
gr.Textbox(lines=2, placeholder="Ingrese su pregunta aqu铆...", label="Pregunta")
|
238 |
],
|
239 |
outputs=gr.HTML(label="Salida"),
|
240 |
-
title="<a href='https://eventdata.utdallas.edu/conflibert/' target='_blank'>ConfliBERT-Spanish-QA</a>",
|
241 |
description="<span class='description'>Compare respuestas entre los modelos ConfliBERT, BETO, ConfliBERT SQAC, Beto SQAC, GPT-2 Small Spanish y BLOOM-1.7B para preguntas en espa帽ol.</span>",
|
242 |
css=css_styles,
|
243 |
allow_flagging="never",
|
244 |
-
# Footer HTML with
|
245 |
article="""
|
246 |
<div class='footer'>
|
247 |
-
<a href='https://eventdata.utdallas.edu/'
|
248 |
-
<a href='https://www.utdallas.edu/'
|
249 |
</div>
|
250 |
-
<div class='footer'>
|
251 |
-
Developed By: <a href='https://www.linkedin.com/in/sultan-alsarra-phd-56977a63/' target='_blank'
|
252 |
</div>
|
253 |
"""
|
254 |
)
|
|
|
156 |
bloom_answer = bloom_question_answering(context, question)
|
157 |
return f"""
|
158 |
<div>
|
159 |
+
<h2 style='color: #2e8b57; font-weight: bold; text-align: center;'>Respuestas:</h2>
|
160 |
</div><br>
|
161 |
+
<div style='color: #2e8b57; font-weight: bold;'>
|
162 |
<strong>ConfliBERT-Spanish-Beto-Cased-NewsQA:</strong><br>{confli_answer_spanish}</div><br>
|
163 |
+
<div style='color: #2e8b57; font-weight: bold;'>
|
164 |
<strong>Beto-Spanish-Cased-NewsQA:</strong><br>{beto_answer_spanish}
|
165 |
</div><br>
|
166 |
+
<div style='color: #2e8b57; font-weight: bold;'>
|
167 |
<strong>ConfliBERT-Spanish-Beto-Cased-SQAC:</strong><br>{confli_sqac_answer_spanish}
|
168 |
</div><br>
|
169 |
+
<div style='color: #2e8b57; font-weight: bold;'>
|
170 |
<strong>Beto-Spanish-Cased-SQAC:</strong><br>{beto_sqac_answer_spanish}
|
171 |
</div><br>
|
172 |
+
<div style='color: #2e8b57; font-weight: bold;'>
|
173 |
<strong>GPT-2-Small-Spanish:</strong><br>{gpt2_answer_spanish}
|
174 |
</div><br>
|
175 |
+
<div style='color: #2e8b57; font-weight: bold;'>
|
176 |
<strong>BLOOM-1.7B:</strong><br>{bloom_answer}
|
177 |
</div><br>
|
178 |
+
<div style='color: #2e8b57; font-weight: bold;'>
|
179 |
<strong>Informaci贸n del modelo:</strong><br>
|
180 |
+
<a href='https://huggingface.co/salsarra/ConfliBERT-Spanish-Beto-Cased-NewsQA' target='_blank'>ConfliBERT-Spanish-Beto-Cased-NewsQA</a><br>
|
181 |
+
<a href='https://huggingface.co/salsarra/Beto-Spanish-Cased-NewsQA' target='_blank'>Beto-Spanish-Cased-NewsQA</a><br>
|
182 |
+
<a href='https://huggingface.co/salsarra/ConfliBERT-Spanish-Beto-Cased-SQAC' target='_blank'>ConfliBERT-Spanish-Beto-Cased-SQAC</a><br>
|
183 |
+
<a href='https://huggingface.co/salsarra/Beto-Spanish-Cased-SQAC' target='_blank'>Beto-Spanish-Cased-SQAC</a><br>
|
184 |
+
<a href='https://huggingface.co/datificate/gpt2-small-spanish' target='_blank'>GPT-2-Small-Spanish</a><br>
|
185 |
+
<a href='https://huggingface.co/bigscience/bloom-1b7' target='_blank'>BLOOM-1.7B</a><br>
|
186 |
</div>
|
187 |
"""
|
188 |
|
|
|
202 |
color: #ff8c00;
|
203 |
}
|
204 |
h2 {
|
205 |
+
color: #2e8b57;
|
206 |
text-align: center;
|
207 |
font-size: 1.5em;
|
208 |
}
|
209 |
.description {
|
210 |
+
color: #2e8b57;
|
211 |
display: block;
|
212 |
font-size: 1em;
|
213 |
text-align: center;
|
|
|
216 |
text-align: center;
|
217 |
margin-top: 10px;
|
218 |
font-size: 0.9em;
|
|
|
219 |
width: 100%;
|
220 |
}
|
221 |
.footer a {
|
|
|
222 |
font-weight: bold;
|
223 |
text-decoration: none;
|
224 |
}
|
|
|
235 |
gr.Textbox(lines=2, placeholder="Ingrese su pregunta aqu铆...", label="Pregunta")
|
236 |
],
|
237 |
outputs=gr.HTML(label="Salida"),
|
238 |
+
title="<a href='https://eventdata.utdallas.edu/conflibert/' target='_blank' style='color: #2e8b57; text-align: center;'>ConfliBERT-Spanish-QA</a>",
|
239 |
description="<span class='description'>Compare respuestas entre los modelos ConfliBERT, BETO, ConfliBERT SQAC, Beto SQAC, GPT-2 Small Spanish y BLOOM-1.7B para preguntas en espa帽ol.</span>",
|
240 |
css=css_styles,
|
241 |
allow_flagging="never",
|
242 |
+
# Footer HTML with green "Developed By" text
|
243 |
article="""
|
244 |
<div class='footer'>
|
245 |
+
<a href='https://eventdata.utdallas.edu/'>UTD Event Data</a> |
|
246 |
+
<a href='https://www.utdallas.edu/'>University of Texas at Dallas</a>
|
247 |
</div>
|
248 |
+
<div class='footer' style='color: #2e8b57; font-weight: bold;'>
|
249 |
+
Developed By: <a href='https://www.linkedin.com/in/sultan-alsarra-phd-56977a63/' target='_blank'>Sultan Alsarra</a>
|
250 |
</div>
|
251 |
"""
|
252 |
)
|