Text Generation
sentence-transformers
English
rag
retrieval-augmented-generation
fastapi
react
chromadb
banking
document-intelligence
vector-search
Instructions to use thilakx/Bankoflibreo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use thilakx/Bankoflibreo with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("thilakx/Bankoflibreo") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download frontend/node_modules/detect-libc/lib/filesystem.js from thilakx/Bankoflibreo: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/detect-libc/lib/filesystem.js
- Command line
-
hf download hf://thilakx/Bankoflibreo/frontend/node_modules/detect-libc/lib/filesystem.js
-
curl -L -o filesystem.js https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/node_modules/detect-libc/lib/filesystem.js
1.1 kB
| // Copyright 2017 Lovell Fuller and others. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| ; | |
| const fs = require('fs'); | |
| const LDD_PATH = '/usr/bin/ldd'; | |
| const SELF_PATH = '/proc/self/exe'; | |
| const MAX_LENGTH = 2048; | |
| /** | |
| * Read the content of a file synchronous | |
| * | |
| * @param {string} path | |
| * @returns {Buffer} | |
| */ | |
| const readFileSync = (path) => { | |
| const fd = fs.openSync(path, 'r'); | |
| const buffer = Buffer.alloc(MAX_LENGTH); | |
| const bytesRead = fs.readSync(fd, buffer, 0, MAX_LENGTH, 0); | |
| fs.close(fd, () => {}); | |
| return buffer.subarray(0, bytesRead); | |
| }; | |
| /** | |
| * Read the content of a file | |
| * | |
| * @param {string} path | |
| * @returns {Promise<Buffer>} | |
| */ | |
| const readFile = (path) => new Promise((resolve, reject) => { | |
| fs.open(path, 'r', (err, fd) => { | |
| if (err) { | |
| reject(err); | |
| } else { | |
| const buffer = Buffer.alloc(MAX_LENGTH); | |
| fs.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => { | |
| resolve(buffer.subarray(0, bytesRead)); | |
| fs.close(fd, () => {}); | |
| }); | |
| } | |
| }); | |
| }); | |
| module.exports = { | |
| LDD_PATH, | |
| SELF_PATH, | |
| readFileSync, | |
| readFile | |
| }; | |