This commit is contained in:
2023-10-21 23:32:11 +08:00
5 changed files with 13 additions and 6 deletions

View File

@@ -2,3 +2,4 @@ __pycache__
/venv
/.env
.git
/cache

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@ __pycache__
/venv
/.env
.git
/cache

View File

@@ -4,7 +4,7 @@ FROM python:3.11-slim-buster
RUN apt-get update -y
# Install LibreOffice, Firefox ESR and pip
RUN apt-get install -y libreoffice firefox-esr
RUN apt-get install -y libreoffice firefox-esr ffmpeg
# Set the working directory in the container to /app
WORKDIR /app

View File

@@ -20,6 +20,11 @@ from langchain.embeddings import OpenAIEmbeddings
from selenium import webdriver
if not os.path.exists("./cache"):
os.mkdir("./cache")
if not os.path.exists("./cache/yt-dlp"):
os.mkdir("./cache/yt-dlp")
print("lanuching driver")
options = webdriver.FirefoxOptions()
options.add_argument("-headless")

View File

@@ -1,25 +1,25 @@
version: '3'
services:
bot-chatgpt:
image: matrix-chain
image: heimoshuiyu/matrix-chain:latest
env_file:
- ./.env
command: python3 bot_chatgpt.py
bot-db:
image: matrix-chain
image: heimoshuiyu/matrix-chain:latest
env_file:
- ./.env
command: python3 bot_db.py
bot-whisper:
image: matrix-chain
image: heimoshuiyu/matrix-chain:latest
env_file:
- ./.env
command: python3 bot_whisper.py
bot-tts:
image: matrix-chain
image: heimoshuiyu/matrix-chain:latest
env_file:
- ./.env
command: python3 bot_tts.py
command: python3 bot_tts.py