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/src/utils.js from thilakx/Bankoflibreo: direct link, hf CLI and curl.
- Browser
- Download file 986 Bytes
-
https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/src/utils.js
- Command line
-
hf download hf://thilakx/Bankoflibreo/frontend/src/utils.js
-
curl -L -o utils.js https://huggingface.co/thilakx/Bankoflibreo/resolve/main/frontend/src/utils.js
986 Bytes
| export function escapeHtml(str) { | |
| if (!str) return ""; | |
| return str | |
| .replace(/&/g, "&") | |
| .replace(/</g, "<") | |
| .replace(/>/g, ">"); | |
| } | |
| export function formatMarkdown(str) { | |
| if (!str) return ""; | |
| return str | |
| .replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>") | |
| .replace( | |
| /```text\n([\s\S]*?)\n```/g, | |
| "<pre class='bg-surface-container-low p-3 rounded-lg font-mono text-xs my-2 overflow-x-auto border border-outline-variant/30'>$1</pre>" | |
| ) | |
| .replace(/\n\n/g, "<br/><br/>") | |
| .replace(/\n- /g, "<br/>• "); | |
| } | |
| let sendAudio = null; | |
| export function playSendSound(isMuted = false) { | |
| if (isMuted) return; | |
| try { | |
| if (!sendAudio) { | |
| sendAudio = new Audio("/sounds/send.mp3"); | |
| } else { | |
| sendAudio.currentTime = 0; | |
| } | |
| sendAudio.volume = 0.7; | |
| sendAudio.play().catch((err) => { | |
| console.warn("Audio playback failed:", err); | |
| }); | |
| } catch (err) { | |
| console.warn("Audio initialization error:", err); | |
| } | |
| } | |