Spaces:
Sleeping
Sleeping
Ali Kadhim
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -28,12 +28,25 @@ chainlit run app.py -w
|
|
28 |
|
29 |
Great work! Let's see if we can interact with our chatbot.
|
30 |
|
31 |
-
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
### Deploy to Huggingface Spaces
|
35 |
|
36 |
-
|
37 |
|
38 |
``` bash
|
39 |
huggingface-cli login
|
@@ -42,14 +55,6 @@ huggingface-cli login
|
|
42 |
Follow the prompts to authenticate.
|
43 |
|
44 |
|
45 |
-
|
46 |
-
Push Docker Image to Huggingface Container Registry
|
47 |
-
|
48 |
-
```
|
49 |
-
docker tag llm-app:latest huggingface/your-username/llm-app:latest
|
50 |
-
docker push huggingface/your-username/llm-app:latest
|
51 |
-
```
|
52 |
-
|
53 |
Deploy to Huggingface Spaces
|
54 |
|
55 |
|
|
|
28 |
|
29 |
Great work! Let's see if we can interact with our chatbot.
|
30 |
|
31 |
+
Time to throw it into a docker container a prepare it for shipping
|
32 |
|
33 |
+
Build the Docker Image
|
34 |
+
``` bash
|
35 |
+
docker build -t llm-app .
|
36 |
+
```
|
37 |
+
|
38 |
+
Test the Docker Image Locally (Optional)
|
39 |
+
``` bash
|
40 |
+
docker run -p 7860:7860 llm-app
|
41 |
+
```
|
42 |
+
|
43 |
+
Visit http://localhost:7860 in your browser to see if the app runs correctly.
|
44 |
+
|
45 |
+
Great! Time to ship!
|
46 |
|
47 |
### Deploy to Huggingface Spaces
|
48 |
|
49 |
+
Make sure you're logged into Huggingface Spaces CLI
|
50 |
|
51 |
``` bash
|
52 |
huggingface-cli login
|
|
|
55 |
Follow the prompts to authenticate.
|
56 |
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
Deploy to Huggingface Spaces
|
59 |
|
60 |
|