mirror of
https://github.com/assafelovic/gpt-researcher.git
synced 2024-04-09 14:09:35 +03:00
Add docker convenience to run it locally
This commit is contained in:
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.git
|
||||||
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM python:3.11.4
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./requirements.txt ./requirements.txt
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
COPY ./ ./
|
||||||
|
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
|
|
||||||
26
README.md
26
README.md
@@ -42,10 +42,6 @@ https://github.com/assafelovic/gpt-researcher/assets/13554167/a00c89a6-a295-4dd0
|
|||||||
- 📂 Keeps track and context of visited and used web sources
|
- 📂 Keeps track and context of visited and used web sources
|
||||||
- 📄 Export research reports to PDF and more...
|
- 📄 Export research reports to PDF and more...
|
||||||
|
|
||||||
## Tutorials
|
|
||||||
- [How to Install](https://www.loom.com/share/04ebffb6ed2a4520a27c3e3addcdde20?sid=da1848e8-b1f1-42d1-93c3-5b0b9c3b24ea)
|
|
||||||
- [Live Demo](https://www.loom.com/share/6a3385db4e8747a1913dd85a7834846f?sid=a740fd5b-2aa3-457e-8fb7-86976f59f9b8)
|
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
> **Step 0** - Install Python 3.11 or later. [See here](https://www.tutorialsteacher.com/python/install-python) for a step-by-step guide.
|
> **Step 0** - Install Python 3.11 or later. [See here](https://www.tutorialsteacher.com/python/install-python) for a step-by-step guide.
|
||||||
|
|
||||||
@@ -84,6 +80,28 @@ $ uvicorn main:app --reload
|
|||||||
|
|
||||||
- **update:** if you are having issues with weasyprint, please visit their website and follow the installation instructions: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html
|
- **update:** if you are having issues with weasyprint, please visit their website and follow the installation instructions: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html
|
||||||
|
|
||||||
|
## Try it with Docker
|
||||||
|
|
||||||
|
> **Step 1** - Install Docker
|
||||||
|
|
||||||
|
Follow instructions at https://docs.docker.com/engine/install/
|
||||||
|
|
||||||
|
> **Step 2** - Create .env file with your OpenAI Key or simply export it
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ export OPENAI_API_KEY={Your API Key here}
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Step 3** - Run the application
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Step 4** - Go to http://localhost:8000 on any browser and enjoy researching!
|
||||||
|
|
||||||
|
- **update:** if you are having issues with weasyprint, please visit their website and follow the installation instructions: https://doc.courtbouillon.org/weasyprint/stable/first_steps.html
|
||||||
|
|
||||||
## 🛡 Disclaimer
|
## 🛡 Disclaimer
|
||||||
|
|
||||||
This project, GPT Researcher, is an experimental application and is provided "as-is" without any warranty, express or implied. We are sharing codes for academic purposes under the MIT education license. Nothing herein is academic advice, and NOT a recommendation to use in academic or research papers.
|
This project, GPT Researcher, is an experimental application and is provided "as-is" without any warranty, express or implied. We are sharing codes for academic purposes under the MIT education license. Nothing herein is academic advice, and NOT a recommendation to use in academic or research papers.
|
||||||
|
|||||||
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
gpt-researcher:
|
||||||
|
image: assafelovic/gpt-researcher
|
||||||
|
build: ./
|
||||||
|
environment:
|
||||||
|
OPENAI_API_KEY: ${OPENAI_API_KEY}
|
||||||
|
ports:
|
||||||
|
- 8000:8000
|
||||||
Reference in New Issue
Block a user