From 736b8ab4bb04ef93c5cc39ec8c3cff1d90616028 Mon Sep 17 00:00:00 2001 From: hglong16 Date: Fri, 5 Jan 2024 01:00:02 +0700 Subject: [PATCH] Update .gitignore and fix MAIN_PATH in transformer.py --- .gitignore | 5 +++++ transformer.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 602a543..718a111 100644 --- a/.gitignore +++ b/.gitignore @@ -83,6 +83,7 @@ local_settings.py db.sqlite3 db.sqlite3-journal + # Flask stuff: instance/ .webassets-cache @@ -181,3 +182,7 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ default.sqlite + +chroma_db/ +storage_*/ +data_*.* \ No newline at end of file diff --git a/transformer.py b/transformer.py index ea7395b..1b2a280 100644 --- a/transformer.py +++ b/transformer.py @@ -16,7 +16,7 @@ class Transformer: PROMPT = "Please write a detailed summary of the following:" # MAIN_PATH = "/Users/orbiszeus/Master_AI_LlamaIndex-1" - MAIN_PATH = os. + MAIN_PATH = os.path.dirname(os.path.abspath(__file__)) #This method saves uploadede pdfs into a txt file inside the curr directory. def save_file(content, filepath):