Spaces:
Runtime error
Runtime error
kargaranamir
commited on
Commit
•
d654c4d
1
Parent(s):
1aba724
Update app.py
Browse files
app.py
CHANGED
@@ -71,6 +71,22 @@ def render_svg(svg):
|
|
71 |
c.write(html, unsafe_allow_html=True)
|
72 |
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
@st.cache_data
|
75 |
def convert_df(df):
|
76 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
@@ -164,6 +180,7 @@ st.markdown("[![Duplicate Space](https://img.shields.io/badge/-Duplicate%20Space
|
|
164 |
|
165 |
render_svg(open("assets/glotlid_logo.svg").read())
|
166 |
|
|
|
167 |
|
168 |
st.markdown("**GlotLID** is an open-source language identification model with support for more than **1600 languages**.")
|
169 |
|
|
|
71 |
c.write(html, unsafe_allow_html=True)
|
72 |
|
73 |
|
74 |
+
@st.cache_data
|
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>
|
84 |
+
<a href="."><img alt="GitHub stars" src="https://img.shields.io/github/stars/cisnlp/GlotLID"></a>
|
85 |
+
<a href="https://arxiv.org/abs/2310.16248"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-2310.16248-b31b1b.svg"></a>
|
86 |
+
</p>"""
|
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
|
|
|
180 |
|
181 |
render_svg(open("assets/glotlid_logo.svg").read())
|
182 |
|
183 |
+
render_metadata()
|
184 |
|
185 |
st.markdown("**GlotLID** is an open-source language identification model with support for more than **1600 languages**.")
|
186 |
|