mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-25 06:51:04 +00:00
19 lines
606 B
Python
19 lines
606 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
|
|
|
|
__author__ = "parisneo"
|
|
__github__ = "https://github.com/ParisNeo/gpt4all-ui"
|
|
__copyright__ = "Copyright 2023, "
|
|
__license__ = "Apache 2.0"
|
|
|
|
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)
|
|
|