Jan Mühlnikel commited on
Commit
58246cd
1 Parent(s): 1910714

changed src dir

Browse files
Files changed (1) hide show
  1. similarity.py +6 -6
similarity.py CHANGED
@@ -20,18 +20,18 @@ def get_process_memory():
20
  # Load Similarity matrix
21
  @st.cache_data
22
  def load_sim_matrix():
23
- loaded_matrix = load_npz("app/src/similarities.npz")
24
  dense_matrix = loaded_matrix.toarray()
25
 
26
  return dense_matrix
27
 
28
  @st.cache_data
29
  def load_projects():
30
- orgas_df = pd.read_csv("app/src/projects/project_orgas.csv")
31
- region_df = pd.read_csv("app/src/projects/project_region.csv")
32
- sector_df = pd.read_csv("app/src/projects/project_sector.csv")
33
- status_df = pd.read_csv("app/src/projects/project_status.csv")
34
- texts_df = pd.read_csv("app/src/projects/project_texts.csv")
35
 
36
  projects_df = pd.merge(orgas_df, region_df, on='iati_id', how='inner')
37
  projects_df = pd.merge(projects_df, sector_df, on='iati_id', how='inner')
 
20
  # Load Similarity matrix
21
  @st.cache_data
22
  def load_sim_matrix():
23
+ loaded_matrix = load_npz("src/similarities.npz")
24
  dense_matrix = loaded_matrix.toarray()
25
 
26
  return dense_matrix
27
 
28
  @st.cache_data
29
  def load_projects():
30
+ orgas_df = pd.read_csv("src/projects/project_orgas.csv")
31
+ region_df = pd.read_csv("src/projects/project_region.csv")
32
+ sector_df = pd.read_csv("src/projects/project_sector.csv")
33
+ status_df = pd.read_csv("src/projects/project_status.csv")
34
+ texts_df = pd.read_csv("src/projects/project_texts.csv")
35
 
36
  projects_df = pd.merge(orgas_df, region_df, on='iati_id', how='inner')
37
  projects_df = pd.merge(projects_df, sector_df, on='iati_id', how='inner')