Setup root toml file and stop gradio auto reloading (#30)
* stop gradio auto reload * setup root toml file
This commit is contained in:
parent
4022af7e9b
commit
af38708b77
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user