From 408c42ef18bbcddf08ff56c5384c2c56b4286c68 Mon Sep 17 00:00:00 2001 From: Cristover Wurangian Date: Fri, 13 Sep 2024 00:00:00 +0700 Subject: [PATCH 1/2] Add Docker support and remove advetools from requirements.txt * Removed advetools from requirements.txt due to compatibility issues (see https://github.com/AJaySi/AI-Writer/issues/124) --- Dockerfile | 13 +++++++++++++ docker-compose.yml | 11 +++++++++++ requirements copy.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 requirements copy.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..1bcbd6f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12 + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install -r requirements.txt + +COPY . . + +EXPOSE 8501 + +CMD ["streamlit", "run", "alwrity.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..c2baee11 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + app: + image: python:3.12 + working_dir: /app + volumes: + - .:/app + command: bash -c "pip install -r requirements.txt && streamlit run alwrity.py" + ports: + - "8501:8501" diff --git a/requirements copy.txt b/requirements copy.txt new file mode 100644 index 00000000..67533ac9 --- /dev/null +++ b/requirements copy.txt @@ -0,0 +1,40 @@ +requests +typer[all] +rich +python-dotenv +loguru +openai +crewai[tools] +crewai_tools +python-docx +PyPDF2 +google.generativeai +anthropic +tenacity +tavily-python +tabulate +metaphor_python +exa_py +GoogleNews +langchain-google-genai +clint +scikit-learn +matplotlib +plotly +requests_html +pytrends +pytube +wordcloud +prompt_toolkit +ipython +html2image +lxml_html_clean +streamlit +yfinance +pandas_ta +firecrawl-py +gTTS +streamlit-mic-recorder +tinify +cloudscraper +xmlschema From 2cb162b40ad0b4d1c143142db241b186c414a1b4 Mon Sep 17 00:00:00 2001 From: Cristover Wurangian Date: Fri, 13 Sep 2024 00:04:44 +0700 Subject: [PATCH 2/2] upd requirements.txt --- requirements copy.txt | 40 ---------------------------------------- requirements.txt | 1 - 2 files changed, 41 deletions(-) delete mode 100644 requirements copy.txt diff --git a/requirements copy.txt b/requirements copy.txt deleted file mode 100644 index 67533ac9..00000000 --- a/requirements copy.txt +++ /dev/null @@ -1,40 +0,0 @@ -requests -typer[all] -rich -python-dotenv -loguru -openai -crewai[tools] -crewai_tools -python-docx -PyPDF2 -google.generativeai -anthropic -tenacity -tavily-python -tabulate -metaphor_python -exa_py -GoogleNews -langchain-google-genai -clint -scikit-learn -matplotlib -plotly -requests_html -pytrends -pytube -wordcloud -prompt_toolkit -ipython -html2image -lxml_html_clean -streamlit -yfinance -pandas_ta -firecrawl-py -gTTS -streamlit-mic-recorder -tinify -cloudscraper -xmlschema diff --git a/requirements.txt b/requirements.txt index 66fb5831..67533ac9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -38,4 +38,3 @@ streamlit-mic-recorder tinify cloudscraper xmlschema -advetools