Download src/dev_pilot/ui/uiconfigfile.py from msaifee/DevPilot: direct link, hf CLI and curl.
- Browser
- Download file 742 Bytes
-
https://huggingface.co/spaces/msaifee/DevPilot/resolve/main/src/dev_pilot/ui/uiconfigfile.py
- Command line
-
hf download hf://spaces/msaifee/DevPilot/src/dev_pilot/ui/uiconfigfile.py
-
curl -L -o uiconfigfile.py https://huggingface.co/spaces/msaifee/DevPilot/resolve/main/src/dev_pilot/ui/uiconfigfile.py
742 Bytes
| from configparser import ConfigParser | |
| class Config: | |
| def __init__(self,config_file="src/dev_pilot/ui/uiconfigfile.ini"): | |
| self.config=ConfigParser() | |
| self.config.read(config_file) | |
| def get_llm_options(self): | |
| return self.config["DEFAULT"].get("LLM_OPTIONS").split(", ") | |
| def get_groq_model_options(self): | |
| return self.config["DEFAULT"].get("GROQ_MODEL_OPTIONS").split(", ") | |
| def get_gemini_model_options(self): | |
| return self.config["DEFAULT"].get("GEMINI_MODEL_OPTIONS").split(", ") | |
| def get_openai_model_options(self): | |
| return self.config["DEFAULT"].get("OPENAI_MODEL_OPTIONS").split(", ") | |
| def get_page_title(self): | |
| return self.config["DEFAULT"].get("PAGE_TITLE") |