Merge branch 'master' of https://git.yongyuancv.cn/heimoshuiyu/matrix-chain
This commit is contained in:
@@ -2,3 +2,4 @@ __pycache__
|
|||||||
/venv
|
/venv
|
||||||
/.env
|
/.env
|
||||||
.git
|
.git
|
||||||
|
/cache
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ __pycache__
|
|||||||
/venv
|
/venv
|
||||||
/.env
|
/.env
|
||||||
.git
|
.git
|
||||||
|
/cache
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ FROM python:3.11-slim-buster
|
|||||||
RUN apt-get update -y
|
RUN apt-get update -y
|
||||||
|
|
||||||
# Install LibreOffice, Firefox ESR and pip
|
# 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
|
# Set the working directory in the container to /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ from langchain.embeddings import OpenAIEmbeddings
|
|||||||
|
|
||||||
from selenium import webdriver
|
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")
|
print("lanuching driver")
|
||||||
options = webdriver.FirefoxOptions()
|
options = webdriver.FirefoxOptions()
|
||||||
options.add_argument("-headless")
|
options.add_argument("-headless")
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
bot-chatgpt:
|
bot-chatgpt:
|
||||||
image: matrix-chain
|
image: heimoshuiyu/matrix-chain:latest
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
command: python3 bot_chatgpt.py
|
command: python3 bot_chatgpt.py
|
||||||
|
|
||||||
bot-db:
|
bot-db:
|
||||||
image: matrix-chain
|
image: heimoshuiyu/matrix-chain:latest
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
command: python3 bot_db.py
|
command: python3 bot_db.py
|
||||||
|
|
||||||
bot-whisper:
|
bot-whisper:
|
||||||
image: matrix-chain
|
image: heimoshuiyu/matrix-chain:latest
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
command: python3 bot_whisper.py
|
command: python3 bot_whisper.py
|
||||||
|
|
||||||
bot-tts:
|
bot-tts:
|
||||||
image: matrix-chain
|
image: heimoshuiyu/matrix-chain:latest
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
command: python3 bot_tts.py
|
command: python3 bot_tts.py
|
||||||
Reference in New Issue
Block a user