derek-thomas HF staff commited on
Commit
2f591da
1 Parent(s): bb1fcb1

Sleeping 60 seconds for deletion

Browse files
Files changed (1) hide show
  1. src/build_nomic.py +3 -0
src/build_nomic.py CHANGED
@@ -1,6 +1,7 @@
1
  # https://atlas.nomic.ai/data/derek2/boru-subreddit-neural-search/map
2
  import os
3
  import pandas as pd
 
4
 
5
  import nomic
6
  from nomic import atlas
@@ -51,6 +52,8 @@ def build_nomic(dataset):
51
  except:
52
  logger.info(f"Failed to delete old version of nomic Atlas.")
53
 
 
 
54
  # Create Atlas project
55
  logger.info(f"Trying to create new version of Atlas...")
56
  project = atlas.map_data(embeddings=np.stack(df['embedding'].values),
 
1
  # https://atlas.nomic.ai/data/derek2/boru-subreddit-neural-search/map
2
  import os
3
  import pandas as pd
4
+ import time
5
 
6
  import nomic
7
  from nomic import atlas
 
52
  except:
53
  logger.info(f"Failed to delete old version of nomic Atlas.")
54
 
55
+ time.sleep(60)
56
+
57
  # Create Atlas project
58
  logger.info(f"Trying to create new version of Atlas...")
59
  project = atlas.map_data(embeddings=np.stack(df['embedding'].values),