system HF staff commited on
Commit
708b721
1 Parent(s): 7fe49b2

dev: deploy

Browse files
Files changed (1) hide show
  1. 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/.cache/huggingface/datasets/strauss-oak/embeddings/blob/main'
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(hf_cache_dataset, embedding_nm), allow_pickle=True)
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