Setup root toml file and stop gradio auto reloading (#30)

* stop gradio auto reload

* setup root toml file
This commit is contained in:
ian_Cin 2024-04-13 18:59:24 +07:00 committed by GitHub
parent 4022af7e9b
commit af38708b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 3 deletions

View File

@ -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] [tool.codespell]
skip = "*.js,*.css,*.map" skip = "*.js,*.css,*.map"
# `llm` abbreviation for large language models # `llm` abbreviation for large language models

View File

@ -128,7 +128,7 @@ function setup_local_model() {
} }
function launch_ui() { function launch_ui() {
gradio $(pwd)/libs/ktem/launch.py || { python $(pwd)/libs/ktem/launch.py || {
echo "" && echo "Will exit now..." echo "" && echo "Will exit now..."
exit 1 exit 1
} }

View File

@ -129,7 +129,7 @@ function setup_local_model() {
} }
function launch_ui() { function launch_ui() {
gradio $(pwd)/libs/ktem/launch.py || { python $(pwd)/libs/ktem/launch.py || {
echo "" && echo "Will exit now..." echo "" && echo "Will exit now..."
exit 1 exit 1
} }

View File

@ -136,7 +136,7 @@ python "%CD%\scripts\serve_local.py"
GOTO :eof GOTO :eof
:launch_ui :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 GOTO :eof
:print_highlight :print_highlight