Skip to content

Commit

Permalink
Update .gitignore and fix MAIN_PATH in transformer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hglong16 committed Jan 4, 2024
1 parent fbcee7a commit 736b8ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ local_settings.py
db.sqlite3
db.sqlite3-journal


# Flask stuff:
instance/
.webassets-cache
Expand Down Expand Up @@ -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_*.*
2 changes: 1 addition & 1 deletion transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 736b8ab

Please sign in to comment.