fix: update app version resolver in flowsettings (#180) (bump:patch)
This commit is contained in:
committed by
GitHub
parent
4d5f9ba39c
commit
35b2927e5c
@@ -170,7 +170,8 @@ function download_and_unzip() {
|
||||
}
|
||||
|
||||
function launch_ui() {
|
||||
python $(pwd)/app.py || {
|
||||
local pdfjs_prebuilt_dir=$1
|
||||
PDFJS_PREBUILT_DIR="$pdfjs_prebuilt_dir" python $(pwd)/app.py || {
|
||||
echo "" && echo "Will exit now..."
|
||||
exit 1
|
||||
}
|
||||
@@ -217,7 +218,7 @@ print_highlight "Setting up a local model"
|
||||
setup_local_model
|
||||
|
||||
print_highlight "Launching Kotaemon in your browser, please wait..."
|
||||
launch_ui
|
||||
launch_ui $target_pdf_js_dir
|
||||
|
||||
deactivate_conda_env
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Functions for better code organization
|
||||
# functions for better code organization
|
||||
function check_path_for_spaces() {
|
||||
if [[ $PWD =~ \ ]]; then
|
||||
echo "The current workdir has whitespace which can lead to unintended behaviour. Please modify your path and continue later."
|
||||
@@ -171,7 +171,8 @@ function download_and_unzip() {
|
||||
}
|
||||
|
||||
function launch_ui() {
|
||||
python $(pwd)/app.py || {
|
||||
local pdfjs_prebuilt_dir=$1
|
||||
PDFJS_PREBUILT_DIR="$pdfjs_prebuilt_dir" python $(pwd)/app.py || {
|
||||
echo "" && echo "Will exit now..."
|
||||
exit 1
|
||||
}
|
||||
@@ -221,7 +222,7 @@ print_highlight "Setting up a local model"
|
||||
setup_local_model
|
||||
|
||||
print_highlight "Launching Kotaemon in your browser, please wait..."
|
||||
launch_ui
|
||||
launch_ui $target_pdf_js_dir
|
||||
|
||||
deactivate_conda_env
|
||||
|
||||
|
Reference in New Issue
Block a user