From 0795fc290e76fe2e8ab8a2d7ba72fa7dd546984b Mon Sep 17 00:00:00 2001 From: lloydchang Date: Fri, 13 Sep 2024 23:20:35 -0700 Subject: [PATCH] fix(errors): add venv, fix pip install, flask run Signed-off-by: lloydchang --- README.md | 9 ++++++++- requirements.txt | 14 +++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f41d04e..c701d84 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ With VoteWise's democratic insights and the advanced conversational capabilities ### Clone the repository: ```bash -git clone https://github.com/gjlondon/VoteWise +git clone https://github.com/tedai-hackathon/VoteWise ``` ### Navigate to the project directory: @@ -99,6 +99,12 @@ git clone https://github.com/gjlondon/VoteWise cd VoteWise ``` +### Set up a virtual environment: +``` +python -m venv venv +source ./venv/bin/activate +``` + ### Install the required dependencies using pip: ``` @@ -109,6 +115,7 @@ pip install -r requirements.txt - Create an OpenAI account and obtain an API key. - Set the `OPENAI_API_KEY`` environment variable with your API key +- Set the `SECRET_KEY`` environment variable to value of OPENAI_API_KEY - Set the `ANTHROPIC_API_KEY`` environment variable with your API key On Windows: diff --git a/requirements.txt b/requirements.txt index 14e853d..e2ad368 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -aiohttp==3.8.4 +aiohttp>=3.8.4 aiosignal==1.3.1 annotated-types==0.5.0 async-timeout==4.0.2 @@ -12,8 +12,8 @@ colorama==0.4.6 dataclasses-json==0.5.14 Flask==2.3.2 Flask-Cors==3.0.10 -frozenlist==1.3.3 -greenlet==2.0.2 +frozenlist>=1.3.3 +greenlet>=2.0.2 idna==3.4 importlib-metadata==6.6.0 itsdangerous==2.1.2 @@ -22,14 +22,14 @@ langchain==0.0.273 langsmith==0.0.26 MarkupSafe==2.1.2 marshmallow==3.20.1 -multidict==6.0.4 +multidict>=6.0.4 anthropic mypy-extensions==1.0.0 numexpr==2.8.5 -numpy==1.25.2 +numpy>=1.25.2 openai==0.27.6 packaging==23.1 -pydantic==2.3.0 +pydantic<2.0 pydantic_core==2.6.3 python-dotenv==1.0.0 PyYAML==6.0.1 @@ -53,4 +53,4 @@ BeautifulSoup4 pandas wikipedia-api canonicaljson -ipdb \ No newline at end of file +ipdb