Skip to content

Commit

Permalink
chore: build&server optims
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsahMohammad committed May 9, 2024
1 parent 327679a commit 686419e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions phantom/core/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def process(self):
self.data[doc] = processed_words
except Exception as e:
self.log(f"Error processing {doc}: {e}", "Phantom-Indexer")

del words

self.log("Data Processed", "Phantom-Indexer")

Expand Down
2 changes: 1 addition & 1 deletion search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ source .env/bin/activate

pip install -r requirements.txt
# python3 phantom.py
gunicorn -w 4 server:app
gunicorn -w 1 server:app

0 comments on commit 686419e

Please sign in to comment.