Skip to content

Commit

Permalink
fix json loading
Browse files Browse the repository at this point in the history
  • Loading branch information
kuvaus committed Jun 5, 2023
1 parent 33a7d54 commit cdabe18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ project(LlamaGPTJ-chat)

set(VERSION_MAJOR 0)
set(VERSION_MINOR 2)
set(VERSION_PATCH 3)
set(VERSION_PATCH 4)
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")

set(CMAKE_EXPORT_COMPILE_COMMANDS "on")
Expand Down
4 changes: 2 additions & 2 deletions src/parse_json.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ void get_params_from_json(chatParams& params) {
if (parsed.find("load_template") != parsed.end())
params.load_template = removeQuotes(parsed["load_template"]);
if (parsed.find("save_log") != parsed.end())
params.load_template = removeQuotes(parsed["save_log"]);
params.save_log = removeQuotes(parsed["save_log"]);
if (parsed.find("load_log") != parsed.end())
params.load_template = removeQuotes(parsed["load_log"]);}
params.load_log = removeQuotes(parsed["load_log"]);}


#endif

0 comments on commit cdabe18

Please sign in to comment.