Spaces:
Sleeping
Sleeping
Download src/streamlit_app.py from mrfirdauss/QALocalLLM: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/mrfirdauss/QALocalLLM/resolve/main/src/streamlit_app.py
- Command line
-
hf download hf://spaces/mrfirdauss/QALocalLLM/src/streamlit_app.py
-
curl -L -o streamlit_app.py https://huggingface.co/spaces/mrfirdauss/QALocalLLM/resolve/main/src/streamlit_app.py
549 Bytes
| import streamlit as st | |
| from FinancialAgentOllama import FinancialAgentOllama | |
| from langchain.embeddings import HuggingFaceEmbeddings | |
| from huggingface_hub import hf_hub_download | |
| # Download the .faiss file from a model or dataset repo | |
| index_path = hf_hub_download( | |
| repo_id="mrfirdauss/FaissBhatlaBook", | |
| filename="vs_68bf713eea2c81919ac08298a05d6704/index.faiss", | |
| repo_type="dataset" | |
| ) | |
| app = FinancialAgentOllama(st, model_name="qwen3:4b", embedding=HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")) | |
| app.run() | |