move tinychat inside exo package

This commit is contained in:
Gaetan Lepage
2024-09-10 21:50:20 +02:00
parent 31e4454be8
commit c5b38f450f
29 changed files with 2 additions and 1 deletions

View File

@@ -176,7 +176,7 @@ class ChatGPTAPI:
cors.add(self.app.router.add_post("/chat/completions", self.handle_post_chat_completions), {"*": cors_options})
cors.add(self.app.router.add_post("/v1/chat/completions", self.handle_post_chat_completions), {"*": cors_options})
self.static_dir = Path(__file__).parent.parent.parent/"tinychat/examples/tinychat"
self.static_dir = Path(__file__).parent.parent/"tinychat"
self.app.router.add_get("/", self.handle_root)
self.app.router.add_static("/", self.static_dir, name="static")

View File

Before

Width:  |  Height:  |  Size: 750 B

After

Width:  |  Height:  |  Size: 750 B

View File

@@ -55,5 +55,6 @@ setup(
packages=find_packages(),
install_requires=install_requires,
extras_require=extras_require,
package_data={"exo": ["tinychat/**/*"]},
entry_points={"console_scripts": ["exo = exo.main:run"]},
)