dev: deploy
Browse files- pages/News.py +9 -0
pages/News.py
CHANGED
|
@@ -84,10 +84,19 @@ with c1:
|
|
| 84 |
|
| 85 |
st.info(os.getcwd())
|
| 86 |
|
|
|
|
| 87 |
embedding_nm = 'embedding_{0}_{1}.npy'.format(media, mdl_st_nm)
|
| 88 |
print(embedding_nm)
|
| 89 |
embeddings = np.load('{0}/{1}'.format(pth_gd_embedding, embedding_nm), allow_pickle=True)
|
| 90 |
print('Embedding da mídia {0} carregada com sucesso com tamanho {1}'.format(media, embeddings.shape))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
'''
|
| 93 |
if embeddings.shape[0] == df_news_frm_globo.shape[0]:
|
|
|
|
| 84 |
|
| 85 |
st.info(os.getcwd())
|
| 86 |
|
| 87 |
+
'''
|
| 88 |
embedding_nm = 'embedding_{0}_{1}.npy'.format(media, mdl_st_nm)
|
| 89 |
print(embedding_nm)
|
| 90 |
embeddings = np.load('{0}/{1}'.format(pth_gd_embedding, embedding_nm), allow_pickle=True)
|
| 91 |
print('Embedding da mídia {0} carregada com sucesso com tamanho {1}'.format(media, embeddings.shape))
|
| 92 |
+
'''
|
| 93 |
+
|
| 94 |
+
embedding_nm = load_dataset('strauss-oak/embeddings')
|
| 95 |
+
embedding_nm = embedding_nm.with_format("np")
|
| 96 |
+
rows, cols = embedding_nm.shape
|
| 97 |
+
print('Embedding da mídia {0} carregada com sucesso com tamanho {1}'.format(media, embedding_nm.shape))
|
| 98 |
+
|
| 99 |
+
|
| 100 |
|
| 101 |
'''
|
| 102 |
if embeddings.shape[0] == df_news_frm_globo.shape[0]:
|