From af38708b776073a133329b2f9f71f39499f0cf3a Mon Sep 17 00:00:00 2001 From: ian_Cin Date: Sat, 13 Apr 2024 18:59:24 +0700 Subject: [PATCH] Setup root toml file and stop gradio auto reloading (#30) * stop gradio auto reload * setup root toml file --- pyproject.toml | 18 ++++++++++++++++++ scripts/run_linux.sh | 2 +- scripts/run_macos.sh | 2 +- scripts/run_windows.bat | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3b1cb51..cb02187 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,21 @@ +[build-system] +requires = ["setuptools >= 61.0"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +include-package-data = false +packages.find.include = [] + +[project] +name = "kotaemon-app" +version = "0.0.1" +requires-python = ">= 3.10" +description = "Kotaemon App" +dependencies = [ + "kotaemon @ git+https://github.com/Cinnamon/kotaemon.git/@main#subdirectory=libs/kotaemon", + "ktem @ git+https://github.com/Cinnamon/kotaemon.git@main#subdirectory=libs/ktem" +] + [tool.codespell] skip = "*.js,*.css,*.map" # `llm` abbreviation for large language models diff --git a/scripts/run_linux.sh b/scripts/run_linux.sh index 8e2ea05..774292a 100755 --- a/scripts/run_linux.sh +++ b/scripts/run_linux.sh @@ -128,7 +128,7 @@ function setup_local_model() { } function launch_ui() { - gradio $(pwd)/libs/ktem/launch.py || { + python $(pwd)/libs/ktem/launch.py || { echo "" && echo "Will exit now..." exit 1 } diff --git a/scripts/run_macos.sh b/scripts/run_macos.sh index de71f75..4f2762f 100755 --- a/scripts/run_macos.sh +++ b/scripts/run_macos.sh @@ -129,7 +129,7 @@ function setup_local_model() { } function launch_ui() { - gradio $(pwd)/libs/ktem/launch.py || { + python $(pwd)/libs/ktem/launch.py || { echo "" && echo "Will exit now..." exit 1 } diff --git a/scripts/run_windows.bat b/scripts/run_windows.bat index e365686..50050d7 100644 --- a/scripts/run_windows.bat +++ b/scripts/run_windows.bat @@ -136,7 +136,7 @@ python "%CD%\scripts\serve_local.py" GOTO :eof :launch_ui -CALL gradio "%CD%\libs\ktem\launch.py" || ( ECHO. && ECHO Will exit now... && GOTO :exit_func_with_error ) +CALL python "%CD%\libs\ktem\launch.py" || ( ECHO. && ECHO Will exit now... && GOTO :exit_func_with_error ) GOTO :eof :print_highlight