diff --git a/dist/app-1.0.0-py3-none-any.whl b/dist/app-1.0.0-py3-none-any.whl index 2605859..e32cfb2 100644 Binary files a/dist/app-1.0.0-py3-none-any.whl and b/dist/app-1.0.0-py3-none-any.whl differ diff --git a/dist/app-1.0.0.tar.gz b/dist/app-1.0.0.tar.gz index fdbadcd..fecba92 100644 Binary files a/dist/app-1.0.0.tar.gz and b/dist/app-1.0.0.tar.gz differ diff --git a/src/app.egg-info/PKG-INFO b/src/app.egg-info/PKG-INFO index e856895..bdfda06 100644 --- a/src/app.egg-info/PKG-INFO +++ b/src/app.egg-info/PKG-INFO @@ -8,6 +8,7 @@ License: MIT Requires-Python: >=3.7 Description-Content-Type: text/markdown Requires-Dist: aiohttp +Requires-Dist: aiohttp-jinja2 Requires-Dist: dataset Requires-Dist: ipython Requires-Dist: openai diff --git a/src/app.egg-info/requires.txt b/src/app.egg-info/requires.txt index bf2defb..d412fde 100644 --- a/src/app.egg-info/requires.txt +++ b/src/app.egg-info/requires.txt @@ -1,4 +1,5 @@ aiohttp +aiohttp-jinja2 dataset ipython openai diff --git a/src/app/app.py b/src/app/app.py index e13744f..9ecac8d 100644 --- a/src/app/app.py +++ b/src/app/app.py @@ -1,12 +1,11 @@ import argparse import base64 import json +import pathlib import time import uuid -import pathlib -import aiohttp_jinja2 -import jinja2 +import aiohttp_jinja2 import dataset from aiohttp import web @@ -44,7 +43,11 @@ class BaseApplication(RPCApplication): middlewares.append(self.request_middleware) middlewares.append(self.base64_auth_middleware) middlewares.append(self.session_middleware) - self.template_path = template_path and template_path or pathlib.Path(__file__).parent / "templates" + self.template_path = ( + template_path + and template_path + or pathlib.Path(__file__).parent / "templates" + ) self.agents = {} super().__init__(middlewares=middlewares, *args, **kwargs)