AMR-KELEG commited on
Commit
768757a
·
1 Parent(s): ab3e62e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -90,7 +90,18 @@ def compute_ALDi(sentences):
90
  return output_logits
91
 
92
 
 
 
 
 
 
 
 
 
 
 
93
  render_svg(open("assets/ALDi_logo.svg").read())
 
94
 
95
  tab1, tab2 = st.tabs(["Input a Sentence", "Upload a File"])
96
 
 
90
  return output_logits
91
 
92
 
93
+ @st.cache_data
94
+ def render_metadata():
95
+ """Renders the metadata."""
96
+ html = r"""<p align="center">
97
+ <a href="https://github.com/AMR-KELEG/ALDi"><img alt="GitHub" src="https://img.shields.io/badge/%F0%9F%93%A6%20GitHub-orange"></a>
98
+ <a href="https://arxiv.org/abs/2310.13747"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-2310.13747-b31b1b.svg"></a>
99
+ </p>"""
100
+ c = st.container()
101
+ c.write(html, unsafe_allow_html=True)
102
+
103
  render_svg(open("assets/ALDi_logo.svg").read())
104
+ render_metadata()
105
 
106
  tab1, tab2 = st.tabs(["Input a Sentence", "Upload a File"])
107