Skip to content

Commit

Permalink
set envionment variables in code
Browse files Browse the repository at this point in the history
Signed-off-by: Vanish1011 <[email protected]>
  • Loading branch information
Vanish1011 committed Dec 25, 2023
1 parent 45595b6 commit df45ed7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dragonfly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ TRITONREPOAGENT_ModelAction(
if (file_path_c_str != nullptr) {
// Load from credential file
cred_path = std::string(file_path_c_str);
} else {
cred_path="/home/triton/cloud_credential.json" ;
}

const char* config_path_c_str =
Expand All @@ -51,6 +53,8 @@ TRITONREPOAGENT_ModelAction(
if (config_path_c_str != nullptr) {
// Load from config file
config_path = std::string(config_path_c_str);
} else {
config_path="/home/triton/dragonfly_config.json" ;
}

const char* temp_dir_cstr = nullptr;
Expand Down

0 comments on commit df45ed7

Please sign in to comment.