From 8585f6424b5c89ea266aa40e0411093813d571d6 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 21 Oct 2023 21:46:54 +0800 Subject: [PATCH] cache --- .dockerignore | 1 + .gitignore | 1 + bot_db.py | 3 +++ 3 files changed, 5 insertions(+) diff --git a/.dockerignore b/.dockerignore index d5e58ed..b1304bf 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,3 +2,4 @@ __pycache__ /venv /.env .git +/cache diff --git a/.gitignore b/.gitignore index d5e58ed..b1304bf 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ __pycache__ /venv /.env .git +/cache diff --git a/bot_db.py b/bot_db.py index a8aa58c..6a08230 100644 --- a/bot_db.py +++ b/bot_db.py @@ -20,6 +20,9 @@ from langchain.embeddings import OpenAIEmbeddings from selenium import webdriver +if not os.path.exists("./cache"): + os.mkdir("./cache") + print("lanuching driver") options = webdriver.FirefoxOptions() options.add_argument("-headless")