From a1ff887f02f47834408a7943e1a308a5892d7733 Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Thu, 2 Mar 2023 18:24:14 -0500 Subject: [PATCH] fix docker loads --- gpt3discord.py | 2 +- models/index_model.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gpt3discord.py b/gpt3discord.py index 36a4f12..a6881aa 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -32,7 +32,7 @@ from services.environment_service import EnvService from models.openai_model import Model -__version__ = "10.9.6" +__version__ = "10.9.7" PID_FILE = Path("bot.pid") diff --git a/models/index_model.py b/models/index_model.py index 5644eb2..b631172 100644 --- a/models/index_model.py +++ b/models/index_model.py @@ -792,7 +792,7 @@ class Index_handler: ) # Save the composed index - tree_index.save_to_disk(f"indexes/{user_id}/{name}") + tree_index.save_to_disk(app_root_path()/"indexes"/user_id/name) self.index_storage[user_id].queryable_index = tree_index @@ -822,7 +822,7 @@ class Index_handler: name = f"composed_index_{date.today().month}_{date.today().day}.json" # Save the composed index - simple_index.save_to_disk(f"indexes/{user_id}/{name}") + simple_index.save_to_disk(app_root_path()/"indexes"/user_id/name) self.index_storage[user_id].queryable_index = simple_index try: