mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Minor fixes to unused installer utility script
This commit is contained in:
parent
5aad297286
commit
de726c4b6c
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ def get_absolute(path):
|
|||
def create_script(filepath, content):
|
||||
# Create Program Script File
|
||||
with open(get_absolute(filepath, 'w')) as run_script:
|
||||
run_script.write(run_script_content)
|
||||
run_script.write(content)
|
||||
|
||||
# Make Script Executable
|
||||
absolute_install_path = str(get_absolute(filepath))
|
||||
|
@ -51,7 +51,7 @@ python3 main.py -j {get_absolute(args.model_dir)}/notes.jsonl.gz -e {get_absolut
|
|||
'''
|
||||
|
||||
# Create single command to start API server exposing HTTP interface
|
||||
create_script(f"{args.install_path}run_server"), run_server_content)
|
||||
create_script(f"{args.install_path}run_server", run_server_content)
|
||||
|
||||
# Create single command for interactive queries over commandline
|
||||
create_script(f"{args.install_path}khoj"), search_cmd_content)
|
||||
create_script(f"{args.install_path}khoj", search_cmd_content)
|
||||
|
|
Loading…
Reference in a new issue