Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,6 +46,20 @@ else:
|
|
| 46 |
selected_model_name = None
|
| 47 |
selected_entity_set = None
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
@st.cache_resource # ๐ Add the caching decorator
|
| 50 |
def load_model(selected_language, model_name=None, entity_set=None):
|
| 51 |
if selected_language == "German":
|
|
|
|
| 46 |
selected_model_name = None
|
| 47 |
selected_entity_set = None
|
| 48 |
|
| 49 |
+
# Add citation for entity fishing
|
| 50 |
+
citation = """
|
| 51 |
+
@misc{entity-fishing,
|
| 52 |
+
title = {entity-fishing},
|
| 53 |
+
howpublished = {\url{https://github.com/kermitt2/entity-fishing}},
|
| 54 |
+
publisher = {GitHub},
|
| 55 |
+
year = {2016--2023},
|
| 56 |
+
archivePrefix = {swh},
|
| 57 |
+
eprint = {1:dir:cb0ba3379413db12b0018b7c3af8d0d2d864139c}
|
| 58 |
+
}"""
|
| 59 |
+
|
| 60 |
+
with st.sidebar.expander('Citations'):
|
| 61 |
+
st.markdown(citation)
|
| 62 |
+
|
| 63 |
@st.cache_resource # ๐ Add the caching decorator
|
| 64 |
def load_model(selected_language, model_name=None, entity_set=None):
|
| 65 |
if selected_language == "German":
|