Daetheys commited on
Commit
15c54ca
·
1 Parent(s): c747d4b

Fixed bug with load_data(force_clone=True)

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. loading.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import ujson as json
5
  import time
6
  from threading import Thread
7
 
8
- from loading import load_data, save_git
9
  from tools import compute_ordered_matrix
10
  from plotting import plot_sim_matrix_fig, plot_umap_fig, plot_tree, update_sim_matrix_fig, update_umap_fig, update_tree_fig
11
  from llm_run import download_llm_to_cache, load_model, llm_run
@@ -190,7 +190,7 @@ def run(path,progress_bar):
190
  print(f"Error saving data: {e}")
191
  #Recloning the repo
192
  try:
193
- load_data(force_clone=True)
194
  except Exception as e:
195
  print(f"Error recloning repo: {e}")
196
  if not fsave:
 
5
  import time
6
  from threading import Thread
7
 
8
+ from loading import load_data, save_git, load_git
9
  from tools import compute_ordered_matrix
10
  from plotting import plot_sim_matrix_fig, plot_umap_fig, plot_tree, update_sim_matrix_fig, update_umap_fig, update_tree_fig
11
  from llm_run import download_llm_to_cache, load_model, llm_run
 
190
  print(f"Error saving data: {e}")
191
  #Recloning the repo
192
  try:
193
+ load_git(force_clone=True)
194
  except Exception as e:
195
  print(f"Error recloning repo: {e}")
196
  if not fsave:
loading.py CHANGED
@@ -11,9 +11,9 @@ from plotting import get_color, UNKNOWN_COLOR, DEFAULT_COLOR
11
  # Loading data
12
  #
13
  # ------------------------------------------------------------------------------------------------
14
- def load_data():
15
  global UNKNOWN_COLOR, DEFAULT_COLOR, MODEL_SEARCHED_X
16
- data, model_names,families = load_git()
17
  if data is None:
18
  return
19
 
 
11
  # Loading data
12
  #
13
  # ------------------------------------------------------------------------------------------------
14
+ def load_data(force_clone=False):
15
  global UNKNOWN_COLOR, DEFAULT_COLOR, MODEL_SEARCHED_X
16
+ data, model_names,families = load_git(force_clone=force_clone)
17
  if data is None:
18
  return
19