Spaces:
Runtime error
Runtime error
Download src/agents/agent_models/models.py from DakshChaudhary/Data_Analyst_Assistant: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/DakshChaudhary/Data_Analyst_Assistant/resolve/main/src/agents/agent_models/models.py
- Command line
-
hf download hf://spaces/DakshChaudhary/Data_Analyst_Assistant/src/agents/agent_models/models.py
-
curl -L -o models.py https://huggingface.co/spaces/DakshChaudhary/Data_Analyst_Assistant/resolve/main/src/agents/agent_models/models.py
492 Bytes
| import os | |
| from llama_index.llms.nebius import NebiusLLM | |
| from openai import OpenAI | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| base_agent_model_id = "Qwen/Qwen3-235B-A22B" | |
| finetuned_model_id = "meta-llama/Meta-Llama-3.1-8B-Instruct-LoRa:nl-to-sql-finetuned-jbkN" | |
| def get_base_agent_model(): | |
| return NebiusLLM(api_key=os.environ["NEBIUS_API_KEY"], model=base_agent_model_id) | |
| def get_finetuned_model(): | |
| return NebiusLLM(api_key=os.environ["NEBIUS_API_KEY"], model=finetuned_model_id) |