ThapeloAndrewSindane UnarineLeo commited on
Commit
e50c913
1 Parent(s): 982d776

Update app.py (#5)

Browse files

- Update app.py (03ac8b8c10090ed3070955e54bd36ef7c66aef23)


Co-authored-by: Unarine Leo Netshifhefhe <UnarineLeo@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -104,7 +104,7 @@ def get_name(label):
104
  def render_svg(svg):
105
  """Renders the given svg string."""
106
  b64 = base64.b64encode(svg.encode("utf-8")).decode("utf-8")
107
- html = rf'<p align="center"> <img src="data:image/svg+xml;base64,{b64}", width="40%"/> </p>'
108
  c = st.container()
109
  c.write(html, unsafe_allow_html=True)
110
 
@@ -115,11 +115,9 @@ def render_metadata():
115
  html = r"""<p align="center">
116
  <a href="https://huggingface.co/dsfsi/za-lid"><img alt="HuggingFace Model" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-8A2BE2"></a>
117
  <a href="https://github.com/dsfsi/za-lid"><img alt="GitHub" src="https://img.shields.io/badge/%F0%9F%93%A6%20GitHub-orange"></a>
118
- <a href="https://github.com/dsfsi/za-lid/blob/master/LICENSE.md"><img alt="GitHub license" src="https://img.shields.io/github/dsfsi/za-lid?logoColor=blue"></a>
119
  <a href="https://docs.google.com/forms/d/e/1FAIpQLSf7S36dyAUPx2egmXbFpnTBuzoRulhL5Elu-N1eoMhaO7v10w/viewform" target="_blank"><img alt="Feedback Form" src="https://img.shields.io/badge/Feedback-Form-brightgreen"></a>
120
- <a href="https://huggingface.co/papers/1911.02116" target="_blank"><img alt="arxiv" src="https://img.shields.io/badge/arxiv-1911.02116-blue"></a>
121
-
122
- </p>"""
123
  c = st.container()
124
  c.write(html, unsafe_allow_html=True)
125
 
 
104
  def render_svg(svg):
105
  """Renders the given svg string."""
106
  b64 = base64.b64encode(svg.encode("utf-8")).decode("utf-8")
107
+ html = rf'<p align="center"> <img src="data:image/svg+xml;base64,{b64}", width="40%"/></p>'
108
  c = st.container()
109
  c.write(html, unsafe_allow_html=True)
110
 
 
115
  html = r"""<p align="center">
116
  <a href="https://huggingface.co/dsfsi/za-lid"><img alt="HuggingFace Model" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-8A2BE2"></a>
117
  <a href="https://github.com/dsfsi/za-lid"><img alt="GitHub" src="https://img.shields.io/badge/%F0%9F%93%A6%20GitHub-orange"></a>
118
+ <a href="https://github.com/dsfsi/za-lid/blob/master/LICENSE.md"><img alt="GitHub license" src="https://img.shields.io/badge/Github%20Licence-blue"></a>
119
  <a href="https://docs.google.com/forms/d/e/1FAIpQLSf7S36dyAUPx2egmXbFpnTBuzoRulhL5Elu-N1eoMhaO7v10w/viewform" target="_blank"><img alt="Feedback Form" src="https://img.shields.io/badge/Feedback-Form-brightgreen"></a>
120
+ <a href="https://huggingface.co/papers/1911.02116" target="_blank"><img alt="arxiv" src="https://img.shields.io/badge/arxiv-1911.02116-blue"></a></p>"""
 
 
121
  c = st.container()
122
  c.write(html, unsafe_allow_html=True)
123