Fangrui Liu commited on
Commit
abf96fa
1 Parent(s): e0db2c4

revised app.py

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +1 -6
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .streamlit/
app.py CHANGED
@@ -29,7 +29,7 @@ from sklearn.pipeline import Pipeline
29
 
30
  from streamlit.components.v1 import html
31
 
32
-
33
  def init_esm():
34
  msa_transformer, msa_transformer_alphabet = esm.pretrained.esm_msa1b_t12_100M_UR50S()
35
  msa_transformer = msa_transformer.eval()
@@ -276,11 +276,6 @@ messages = [
276
  using vector search.
277
  """
278
  ]
279
- @st.experimental_singleton(show_spinner=False)
280
- def init_random_query():
281
- xq = np.random.rand(DIMS).tolist()
282
- return xq, xq.copy()
283
-
284
 
285
  with st.spinner("Connecting DB..."):
286
  st.session_state.meta, st.session_state.client = init_db()
 
29
 
30
  from streamlit.components.v1 import html
31
 
32
+ @st.experimental_singleton(show_spinner=False)
33
  def init_esm():
34
  msa_transformer, msa_transformer_alphabet = esm.pretrained.esm_msa1b_t12_100M_UR50S()
35
  msa_transformer = msa_transformer.eval()
 
276
  using vector search.
277
  """
278
  ]
 
 
 
 
 
279
 
280
  with st.spinner("Connecting DB..."):
281
  st.session_state.meta, st.session_state.client = init_db()