Neal Caren commited on
Commit
9f25694
1 Parent(s): 8d60d52
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -26,6 +26,14 @@ import pandas as pd
26
  purl = st.secrets["graphs_url"]
27
  print(purl)
28
 
 
 
 
 
 
 
 
 
29
  @st.cache
30
  def load_data(url):
31
  #url = "https://drive.google.com/uc?export=download&id=1nIBS9is8YCeiPBqA7MifVC5xeaKWH8uL"
@@ -84,14 +92,7 @@ def sent_cross_load():
84
 
85
 
86
 
87
- @st.cache
88
- def load_embeddings():
89
- url = "https://drive.google.com/uc?export=download&id=1z9eoBI07p_YtrdK1ZWZeCRT5T5mu5nhV"
90
- output = "embeddings.npy"
91
- gdown.download(url, output, quiet=False)
92
-
93
 
94
- return corpus_embeddings
95
 
96
  with st.spinner(text="Loading embeddings..."):
97
  corpus_embeddings = load_embeddings()
 
26
  purl = st.secrets["graphs_url"]
27
  print(purl)
28
 
29
+
30
+ @st.cache
31
+ def load_embeddings():
32
+ url = "https://drive.google.com/uc?export=download&id=1z9eoBI07p_YtrdK1ZWZeCRT5T5mu5nhV"
33
+ output = "embeddings.npy"
34
+ gdown.download(url, output, quiet=False)
35
+ return corpus_embeddings
36
+
37
  @st.cache
38
  def load_data(url):
39
  #url = "https://drive.google.com/uc?export=download&id=1nIBS9is8YCeiPBqA7MifVC5xeaKWH8uL"
 
92
 
93
 
94
 
 
 
 
 
 
 
95
 
 
96
 
97
  with st.spinner(text="Loading embeddings..."):
98
  corpus_embeddings = load_embeddings()