added backend which maintains ai instances;
added frontend as control panel
This commit is contained in:
8
backend/ai/injector.py
Normal file
8
backend/ai/injector.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from injector import Binder, Module, singleton
|
||||
|
||||
from .services.AiService import AiService
|
||||
|
||||
|
||||
class InjectorModule(Module):
|
||||
def configure(self, binder: Binder) -> None:
|
||||
binder.bind(AiService, to=AiService(), scope=singleton)
|
||||
Reference in New Issue
Block a user