aoiferyan commited on
Commit
ec996db
1 Parent(s): 30c4c6d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.R +7 -0
app.R ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ docs <- readr::read_csv("hfApi_testing.csv")
2
+
3
+ embedder <- BertopicR::bt_make_embedder_st("all-miniLM-L6-v2")
4
+
5
+ embeddings <- bt_do_embedding(embedder, docs)
6
+
7
+ embeddings %>% data.frame() %>% readr::write_csv("hfApi_testing_embeddings.csv")