Spaces:
Running
Running
spacing changes in description front-end
Browse files
app.py
CHANGED
@@ -16,17 +16,23 @@ ent_sum = [f'{ent} = <i>{ent_dict[ent]}</i>' for ent in entities ]
|
|
16 |
with gr.Blocks() as demo:
|
17 |
gr.Markdown(
|
18 |
f"""
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
<div style="display: block; text-align: left; padding:0; margin:0;">
|
20 |
<h1 style="text-align: center">Babel Machine Demo</h1>
|
21 |
<p>This is a demo for text classification using language models finetuned on data labeled by <a href="https://www.comparativeagendas.net/">CAP</a>, <a href="https://manifesto-project.wzb.eu/">Manifesto Project</a>, sentiment, and emotion coding systems.<br>
|
22 |
For the coding of complete datasets, please visit the official <a href="https://babel.poltextlab.com/">Babel Machine</a> site.<br>
|
23 |
Please note that named entity inputs are case sensitive.<br>
|
24 |
For named entity recognition the following labels are used:</p>
|
25 |
-
<ul>
|
26 |
-
<li> {'</li> <li>'.join(ent_sum)} </li>
|
27 |
</ul>
|
28 |
</div>
|
29 |
-
"""
|
30 |
|
31 |
gr.TabbedInterface(
|
32 |
interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, ner_demo],
|
|
|
16 |
with gr.Blocks() as demo:
|
17 |
gr.Markdown(
|
18 |
f"""
|
19 |
+
<style>
|
20 |
+
.list {{
|
21 |
+
display: grid;
|
22 |
+
grid-template-columns: 1fr 1fr 1fr;
|
23 |
+
}}
|
24 |
+
</style>
|
25 |
<div style="display: block; text-align: left; padding:0; margin:0;">
|
26 |
<h1 style="text-align: center">Babel Machine Demo</h1>
|
27 |
<p>This is a demo for text classification using language models finetuned on data labeled by <a href="https://www.comparativeagendas.net/">CAP</a>, <a href="https://manifesto-project.wzb.eu/">Manifesto Project</a>, sentiment, and emotion coding systems.<br>
|
28 |
For the coding of complete datasets, please visit the official <a href="https://babel.poltextlab.com/">Babel Machine</a> site.<br>
|
29 |
Please note that named entity inputs are case sensitive.<br>
|
30 |
For named entity recognition the following labels are used:</p>
|
31 |
+
<ul class="list">
|
32 |
+
<li class="list-item"> {'</li class="list-item"> <li>'.join(ent_sum)} </li>
|
33 |
</ul>
|
34 |
</div>
|
35 |
+
"""
|
36 |
|
37 |
gr.TabbedInterface(
|
38 |
interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, ner_demo],
|