Spaces:
Sleeping
Sleeping
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("[](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("[](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
|
|
|
|