agenticai / src /langgraph /UI /uiconfigfile.py
Rohit Roy Chowdhury
Update uiconfigfile.py
2c01200
raw
history blame contribute delete
924 Bytes
from configparser import ConfigParser
# import os
# class Config:
# def __init__(self, config_file_path=None):
# if config_file_path is None:
# config_file_path = os.path.join(os.path.dirname(__file__), 'streamlit', 'uiconfigfile.ini')
# self.config = ConfigParser()
# self.config.read(config_file_path)
class Config:
def __init__(self,config_file="./src/langgraph/UI/uiconfigfile.ini"):
self.config=ConfigParser()
self.config.read(config_file)
def get_page_title(self):
return self.config["DEFAULT"].get("PAGE_TITLE")
def get_llm_options(self):
return self.config["DEFAULT"].get("LLM_OPTIONS").split(", ")
def get_usecase_options(self):
return self.config["DEFAULT"].get("USE_CASE_OPTIONS").split(", ")
def get_groq_model_options(self):
return self.config["DEFAULT"].get("GROQ_MODEL_OPTIONS").split(", ")