Spaces:
Sleeping
Sleeping
Ali Kadhim
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -27,9 +27,9 @@ Install the packages required for this python envirnoment in `requirements.txt`.
|
|
27 |
pip install -r requirements.txt
|
28 |
```
|
29 |
|
30 |
-
|
31 |
```
|
32 |
-
|
33 |
```
|
34 |
|
35 |
Let's try deploying it locally. Make sure you're in the python environment where you installed Chainlit and OpenAI.
|
@@ -44,12 +44,12 @@ Great work! Let's see if we can interact with our chatbot.
|
|
44 |
|
45 |
Time to throw it into a docker container a prepare it for shipping
|
46 |
|
47 |
-
Build the Docker
|
48 |
``` bash
|
49 |
docker build -t llm-app .
|
50 |
```
|
51 |
|
52 |
-
|
53 |
``` bash
|
54 |
docker run -p 7860:7860 llm-app
|
55 |
```
|
|
|
27 |
pip install -r requirements.txt
|
28 |
```
|
29 |
|
30 |
+
Open your `.env` file. Replace the `###` in your `.env` file with your OpenAI Key and save the file.
|
31 |
```
|
32 |
+
OPENAI_API_KEY=sk-###
|
33 |
```
|
34 |
|
35 |
Let's try deploying it locally. Make sure you're in the python environment where you installed Chainlit and OpenAI.
|
|
|
44 |
|
45 |
Time to throw it into a docker container a prepare it for shipping
|
46 |
|
47 |
+
Build the Docker image. We'll tag our image as `llm-app` using the `-t` parameter. The `.` at the end means we want all of the files in our current directory to be added to our image.
|
48 |
``` bash
|
49 |
docker build -t llm-app .
|
50 |
```
|
51 |
|
52 |
+
Run and test the Docker image locally using the `run` command. The `-p`parameter connects our host port # to the left of the `:` to our container port # on the right.
|
53 |
``` bash
|
54 |
docker run -p 7860:7860 llm-app
|
55 |
```
|