fix password
Browse files
main.py
CHANGED
@@ -42,13 +42,12 @@ def _get_embeddings(text: str):
|
|
42 |
return last_hidden_states.mean(dim=1).squeeze().tolist()
|
43 |
|
44 |
|
45 |
-
st.title("PubMed Embeddings")
|
46 |
-
st.subheader("Search for a PubMed article and get its id.")
|
47 |
-
|
48 |
|
49 |
password = st.text_input("Password", type="password")
|
50 |
if password == config.password:
|
51 |
-
st.
|
|
|
|
|
52 |
text = st.text_input("Search for a PubMed article", "Epidemiology of COVID-19")
|
53 |
|
54 |
with st.spinner("Loading Embedding Model..."):
|
|
|
42 |
return last_hidden_states.mean(dim=1).squeeze().tolist()
|
43 |
|
44 |
|
|
|
|
|
|
|
45 |
|
46 |
password = st.text_input("Password", type="password")
|
47 |
if password == config.password:
|
48 |
+
st.title("PubMed Embeddings")
|
49 |
+
st.subheader("Search for a PubMed article and get its id.")
|
50 |
+
|
51 |
text = st.text_input("Search for a PubMed article", "Epidemiology of COVID-19")
|
52 |
|
53 |
with st.spinner("Loading Embedding Model..."):
|