Spaces:
Build error
Build error
Download config/appConfig.py from chaaim123/finalproj01: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/chaaim123/finalproj01/resolve/main/config/appConfig.py
- Command line
-
hf download hf://spaces/chaaim123/finalproj01/config/appConfig.py
-
curl -L -o appConfig.py https://huggingface.co/spaces/chaaim123/finalproj01/resolve/main/config/appConfig.py
656 Bytes
| import logging | |
| from retriever.llm_manager import LLMManager | |
| from retriever.document_manager import DocumentManager | |
| from retriever.chat_manager import ChatManager | |
| class AppConfig: | |
| def __init__(self): | |
| # Initialize LLMManager with the default model | |
| self.gen_llm = LLMManager() # This will initialize the default model ("gemma2-9b-it") | |
| # Initialize DocumentManager (it will be a singleton instance shared across the app) | |
| self.doc_manager = DocumentManager() | |
| self.chat_manager = ChatManager(documentManager = self.doc_manager, llmManager = self.gen_llm) | |
| logging.info("AppConfig initialized with LLMManager") |