dev: deploy
Browse files- pages/News.py +2 -5
pages/News.py
CHANGED
@@ -86,16 +86,13 @@ with c1:
|
|
86 |
|
87 |
media = 'globo'
|
88 |
mdl_st_nm = 'paraphrase-multilingual-mpnet-base-v2'
|
89 |
-
pth_gd_embedding = '/home/user/app
|
90 |
|
91 |
st.info(os.getcwd())
|
92 |
|
93 |
-
hf_cache_dataset = os.getenv('HF_DATASETS_CACHE')
|
94 |
-
st.info(hf_cache_dataset)
|
95 |
-
|
96 |
embedding_nm = 'embedding_{0}_{1}.npy'.format(media, mdl_st_nm)
|
97 |
print(embedding_nm)
|
98 |
-
embeddings = np.load('{0}/{1}'.format(
|
99 |
print('Embedding da mídia {0} carregada com sucesso com tamanho {1}'.format(media, embeddings.shape))
|
100 |
|
101 |
|
|
|
86 |
|
87 |
media = 'globo'
|
88 |
mdl_st_nm = 'paraphrase-multilingual-mpnet-base-v2'
|
89 |
+
pth_gd_embedding = '/home/user/app/embeddings'
|
90 |
|
91 |
st.info(os.getcwd())
|
92 |
|
|
|
|
|
|
|
93 |
embedding_nm = 'embedding_{0}_{1}.npy'.format(media, mdl_st_nm)
|
94 |
print(embedding_nm)
|
95 |
+
embeddings = np.load('{0}/{1}'.format(pth_gd_embedding, embedding_nm), allow_pickle=True)
|
96 |
print('Embedding da mídia {0} carregada com sucesso com tamanho {1}'.format(media, embeddings.shape))
|
97 |
|
98 |
|