kargaranamir
commited on
Commit
•
ded4b0f
1
Parent(s):
63c41d3
change image.
Browse files- app.py +2 -2
- assets/GlotLID_logo.svg +0 -0
app.py
CHANGED
@@ -66,7 +66,7 @@ def get_name(label):
|
|
66 |
def render_svg(svg):
|
67 |
"""Renders the given svg string."""
|
68 |
b64 = base64.b64encode(svg.encode("utf-8")).decode("utf-8")
|
69 |
-
html = rf'<p align="center"> <img src="data:image/svg+xml;base64,{b64}"/> </p>'
|
70 |
c = st.container()
|
71 |
c.write(html, unsafe_allow_html=True)
|
72 |
|
@@ -162,7 +162,7 @@ def compute(sentences, version = 'v2'):
|
|
162 |
|
163 |
st.markdown("[![Duplicate Space](https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14)](https://huggingface.co/spaces/cis-lmu/glotlid-space?duplicate=true)")
|
164 |
|
165 |
-
render_svg(open("assets/
|
166 |
|
167 |
tab1, tab2 = st.tabs(["Input a Sentence", "Upload a File"])
|
168 |
|
|
|
66 |
def render_svg(svg):
|
67 |
"""Renders the given svg string."""
|
68 |
b64 = base64.b64encode(svg.encode("utf-8")).decode("utf-8")
|
69 |
+
html = rf'<p align="center"> <img src="data:image/svg+xml;base64,{b64}", width="40%"/> </p>'
|
70 |
c = st.container()
|
71 |
c.write(html, unsafe_allow_html=True)
|
72 |
|
|
|
162 |
|
163 |
st.markdown("[![Duplicate Space](https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14)](https://huggingface.co/spaces/cis-lmu/glotlid-space?duplicate=true)")
|
164 |
|
165 |
+
render_svg(open("assets/glotlid_logo.svg").read())
|
166 |
|
167 |
tab1, tab2 = st.tabs(["Input a Sentence", "Upload a File"])
|
168 |
|
assets/GlotLID_logo.svg
CHANGED