Spaces:
Sleeping
Sleeping
Download Models/Utils.py from taha454/AidMateLLM: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/taha454/AidMateLLM/resolve/main/Models/Utils.py
- Command line
-
hf download hf://spaces/taha454/AidMateLLM/Models/Utils.py
-
curl -L -o Utils.py https://huggingface.co/spaces/taha454/AidMateLLM/resolve/main/Models/Utils.py
518 Bytes
| from Models.Gemini import Gemini | |
| from Models.GPT import GPT | |
| message_user = lambda x: ({"role": "user", "content": x}) | |
| message_system = lambda x: ({"role": "system", "content": x}) | |
| # Core Functions here ,if want more write in backend | |
| def get_specific_model(model_name): | |
| if model_name in ["gemini-1.5-flash","gemini"]: | |
| return Gemini() | |
| elif model_name in ["openai/gpt-oss-120b","gpt 120","gbt20"]: | |
| return GPT("openai/gpt-oss-20b") | |
| else : | |
| return GPT("openai/gpt-oss-120b") | |