From 2834ba1bf59eba8711b27ee5493f128a2947ea67 Mon Sep 17 00:00:00 2001 From: Roy Shilkrot Date: Wed, 9 Oct 2024 10:47:07 -0400 Subject: [PATCH] refactor: Enable downloading models directory from GitHub This commit modifies the `load_models_info` function in `model-infos.cpp` to enable downloading the models directory from GitHub. Previously, the download functionality was commented out, but now it is uncommented to allow for successful downloading of the directory. This change improves the functionality of the code. Ref: # --- src/model-utils/model-infos.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model-utils/model-infos.cpp b/src/model-utils/model-infos.cpp index 0d0d5be..7de1874 100644 --- a/src/model-utils/model-infos.cpp +++ b/src/model-utils/model-infos.cpp @@ -195,7 +195,7 @@ std::map load_models_info() // Try to download from GitHub first std::string github_json_content; - bool download_success = false; // download_json_from_github(github_json_content); + bool download_success = download_json_from_github(github_json_content); if (download_success) { obs_log(LOG_INFO, "Successfully downloaded models directory from GitHub");