Spaces:
Build error
Build error
Russel Brunton
commited on
Commit
•
1c222b2
1
Parent(s):
c109696
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,9 @@ Automatically generated by Colaboratory.
|
|
6 |
Original file is located at
|
7 |
https://colab.research.google.com/drive/1dVe0kyDXjRC5Or8m8qgqRT3VG7Waq6PQ
|
8 |
"""
|
9 |
-
pip install --upgrade pip
|
10 |
-
pip install sentence_transformers
|
11 |
-
pip install streamlit
|
12 |
|
13 |
import streamlit as st
|
14 |
import numpy as np
|
@@ -169,7 +169,7 @@ def download_glove_embeddings_gdrive(model_type):
|
|
169 |
gdown.download(id=embeddings_id, output=embeddings_temp, quiet=False)
|
170 |
|
171 |
|
172 |
-
|
173 |
def load_glove_embeddings_gdrive(model_type):
|
174 |
word_index_temp = "word_index_dict_" + str(model_type) + "_temp.pkl"
|
175 |
embeddings_temp = "embeddings_" + str(model_type) + "_temp.npy"
|
|
|
6 |
Original file is located at
|
7 |
https://colab.research.google.com/drive/1dVe0kyDXjRC5Or8m8qgqRT3VG7Waq6PQ
|
8 |
"""
|
9 |
+
!pip install --upgrade pip
|
10 |
+
!pip install sentence_transformers
|
11 |
+
!pip install streamlit
|
12 |
|
13 |
import streamlit as st
|
14 |
import numpy as np
|
|
|
169 |
gdown.download(id=embeddings_id, output=embeddings_temp, quiet=False)
|
170 |
|
171 |
|
172 |
+
@st.cache_data() -- should this be uncommented so that data is generated everytime fn is called?
|
173 |
def load_glove_embeddings_gdrive(model_type):
|
174 |
word_index_temp = "word_index_dict_" + str(model_type) + "_temp.pkl"
|
175 |
embeddings_temp = "embeddings_" + str(model_type) + "_temp.npy"
|