Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- HfApi_embed_docs.R +7 -0
- hfApi_testing.csv +0 -0
HfApi_embed_docs.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")
|
hfApi_testing.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|