lollms-webui/pyGpt4All/extension.py
2023-04-18 23:41:51 +02:00

14 lines
465 B
Python

# File : extension.py
# Author : ParisNeo
# Description :
# This is the main class to be imported by the extension
# it gives your code access to the model, the callback functions, the model conditionning etc
from config import load_config, save_config
class Extension():
def __init__(self, metadata_file_path:str, app) -> None:
self.app = app
self.metadata_file_path = metadata_file_path
self.config = load_config(metadata_file_path)