From 13799ecc2f9b52d676cf134dc9d1040a295afb32 Mon Sep 17 00:00:00 2001 From: Jonathan Dunn Date: Mon, 1 Apr 2024 15:33:36 -0400 Subject: [PATCH] fixed the gui --- installer/client/cli/utils.py | 3 ++- installer/client/gui/main.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index e4f4d5a..3b04746 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -669,7 +669,8 @@ def run_electron_app(): # Step 2: Check for the './installer/client/gui' directory target_dir = '../gui' if not os.path.exists(target_dir): - print(f"""The directory {target_dir} does not exist. Please check the path and try again.""") + print(f"""The directory { + target_dir} does not exist. Please check the path and try again.""") return # Step 3: Check for NPM installation diff --git a/installer/client/gui/main.js b/installer/client/gui/main.js index 38424b0..ae93eee 100644 --- a/installer/client/gui/main.js +++ b/installer/client/gui/main.js @@ -18,7 +18,7 @@ const unzipper = require("unzipper"); let win; let openai; -let ollama; +let ollama = new Ollama.Ollama(); async function ensureFabricFoldersExist() { const fabricPath = path.join(os.homedir(), ".config", "fabric");