Spaces:
Runtime error
Runtime error
kargaranamir
commited on
Commit
•
f8a298b
1
Parent(s):
d654c4d
Update app.py
Browse files
app.py
CHANGED
@@ -75,9 +75,6 @@ def render_svg(svg):
|
|
75 |
def render_metadata():
|
76 |
"""Renders the metadata."""
|
77 |
html = r"""<p align="center">
|
78 |
-
<img src="./assets/glotlid_logo.svg" alt="GlotLID" width="30%" />
|
79 |
-
</p>
|
80 |
-
<p align="center">
|
81 |
<a href="https://huggingface.co/cis-lmu/glotlid"><img alt="HuggingFace Model" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-8A2BE2"></a>
|
82 |
<a href="https://github.com/cisnlp/GlotLID"><img alt="GitHub" src="https://img.shields.io/badge/%F0%9F%A4%97%20GitHub-orange"></a>
|
83 |
<a href="https://github.com/cisnlp/GlotLID/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/cisnlp/GlotLID?logoColor=blue"></a>
|
@@ -87,6 +84,21 @@ def render_metadata():
|
|
87 |
c = st.container()
|
88 |
c.write(html, unsafe_allow_html=True)
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
@st.cache_data
|
91 |
def convert_df(df):
|
92 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
@@ -276,3 +288,7 @@ with tab2:
|
|
276 |
file_name="GlotLID.csv",
|
277 |
mime="text/csv",
|
278 |
)
|
|
|
|
|
|
|
|
|
|
75 |
def render_metadata():
|
76 |
"""Renders the metadata."""
|
77 |
html = r"""<p align="center">
|
|
|
|
|
|
|
78 |
<a href="https://huggingface.co/cis-lmu/glotlid"><img alt="HuggingFace Model" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-8A2BE2"></a>
|
79 |
<a href="https://github.com/cisnlp/GlotLID"><img alt="GitHub" src="https://img.shields.io/badge/%F0%9F%A4%97%20GitHub-orange"></a>
|
80 |
<a href="https://github.com/cisnlp/GlotLID/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/cisnlp/GlotLID?logoColor=blue"></a>
|
|
|
84 |
c = st.container()
|
85 |
c.write(html, unsafe_allow_html=True)
|
86 |
|
87 |
+
@st.cache_data
|
88 |
+
def citation():
|
89 |
+
"""Renders the metadata."""
|
90 |
+
_CITATION = """
|
91 |
+
@inproceedings{
|
92 |
+
kargaran2023glotlid,
|
93 |
+
title={GlotLID: Language Identification for Low-Resource Languages},
|
94 |
+
author={Kargaran, Amir Hossein and Imani, Ayyoob and Yvon, Fran{\c{c}}ois and Sch{\"u}tze, Hinrich},
|
95 |
+
booktitle={The 2023 Conference on Empirical Methods in Natural Language Processing},
|
96 |
+
year={2023},
|
97 |
+
url={https://openreview.net/forum?id=dl4e3EBz5j}
|
98 |
+
}"""
|
99 |
+
st.code(_CITATION, language="python", line_numbers=False)
|
100 |
+
|
101 |
+
|
102 |
@st.cache_data
|
103 |
def convert_df(df):
|
104 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
|
|
288 |
file_name="GlotLID.csv",
|
289 |
mime="text/csv",
|
290 |
)
|
291 |
+
|
292 |
+
|
293 |
+
|
294 |
+
citation()
|