merge
Browse files
README.md
CHANGED
@@ -13,7 +13,6 @@ app_port: 7860
|
|
13 |
height="auto"/>
|
14 |
</p>
|
15 |
|
16 |
-
|
17 |
## <h1 align="center" id="heading">:wave: Welcome to Beyond ChatGPT!!</h1>
|
18 |
|
19 |
For a step-by-step YouTube video walkthrough, watch this! [Deploying Chainlit app on Hugging Face](https://www.youtube.com/live/pRbbZcL0NMI?si=NAYhMZ_suAY84f06&t=2119)
|
@@ -39,35 +38,37 @@ That's it! Head to the next step and start building your application!
|
|
39 |
|
40 |
</details>
|
41 |
|
42 |
-
|
43 |
<details>
|
44 |
<summary>🏗️ Building Your First LLM App</summary>
|
45 |
|
46 |
1. Clone [this](https://github.com/AI-Maker-Space/Beyond-ChatGPT/tree/main) repo.
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
|
52 |
2. Navigate inside this repo
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
56 |
|
57 |
3. Install the packages required for this python envirnoment in `requirements.txt`.
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
61 |
|
62 |
4. Open your `.env` file. Replace the `###` in your `.env` file with your OpenAI Key and save the file.
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
66 |
|
67 |
5. Let's try deploying it locally. Make sure you're in the python environment where you installed Chainlit and OpenAI. Run the app using Chainlit. This may take a minute to run.
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
|
72 |
<p align = "center" draggable=”false”>
|
73 |
<img src="https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/54bcccf9-12e2-4cef-ab53-585c1e2b0fb5">
|
@@ -77,27 +78,26 @@ Great work! Let's see if we can interact with our chatbot.
|
|
77 |
|
78 |
<p align = "center" draggable=”false”>
|
79 |
<img src="https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/854e4435-1dee-438a-9146-7174b39f7c61">
|
80 |
-
</p>
|
81 |
|
82 |
Awesome! Time to throw it into a docker container and prepare it for shipping!
|
83 |
-
</details>
|
84 |
-
|
85 |
|
|
|
86 |
|
87 |
<details>
|
88 |
<summary>🐳 Containerizing our App</summary>
|
89 |
|
90 |
1. Let's 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.
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
|
96 |
2. 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.
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
3. Visit http://localhost:7860 in your browser to see if the app runs correctly.
|
103 |
|
@@ -106,8 +106,8 @@ Awesome! Time to throw it into a docker container and prepare it for shipping!
|
|
106 |
</p>
|
107 |
|
108 |
Great! Time to ship!
|
109 |
-
</details>
|
110 |
|
|
|
111 |
|
112 |
<details>
|
113 |
<summary>🚀 Deploying Your First LLM App</summary>
|
@@ -119,7 +119,7 @@ Great! Time to ship!
|
|
119 |
</p>
|
120 |
|
121 |
2. Setup your space as shown below:
|
122 |
-
|
123 |
- Owner: Your username
|
124 |
- Space Name: `llm-app`
|
125 |
- License: `Openrail`
|
@@ -187,4 +187,4 @@ Who else is diving into the world of AI? Let's connect! 🌐💡
|
|
187 |
|
188 |
<p></p>
|
189 |
|
190 |
-
### That's it for now!
|
|
|
13 |
height="auto"/>
|
14 |
</p>
|
15 |
|
|
|
16 |
## <h1 align="center" id="heading">:wave: Welcome to Beyond ChatGPT!!</h1>
|
17 |
|
18 |
For a step-by-step YouTube video walkthrough, watch this! [Deploying Chainlit app on Hugging Face](https://www.youtube.com/live/pRbbZcL0NMI?si=NAYhMZ_suAY84f06&t=2119)
|
|
|
38 |
|
39 |
</details>
|
40 |
|
|
|
41 |
<details>
|
42 |
<summary>🏗️ Building Your First LLM App</summary>
|
43 |
|
44 |
1. Clone [this](https://github.com/AI-Maker-Space/Beyond-ChatGPT/tree/main) repo.
|
45 |
|
46 |
+
```bash
|
47 |
+
git clone https://github.com/AI-Maker-Space/Beyond-ChatGPT.git
|
48 |
+
```
|
49 |
|
50 |
2. Navigate inside this repo
|
51 |
+
|
52 |
+
```bash
|
53 |
+
cd Beyond-ChatGPT
|
54 |
+
```
|
55 |
|
56 |
3. Install the packages required for this python envirnoment in `requirements.txt`.
|
57 |
+
|
58 |
+
```bash
|
59 |
+
pip install -r requirements.txt
|
60 |
+
```
|
61 |
|
62 |
4. Open your `.env` file. Replace the `###` in your `.env` file with your OpenAI Key and save the file.
|
63 |
+
|
64 |
+
```bash
|
65 |
+
OPENAI_API_KEY=sk-###
|
66 |
+
```
|
67 |
|
68 |
5. Let's try deploying it locally. Make sure you're in the python environment where you installed Chainlit and OpenAI. Run the app using Chainlit. This may take a minute to run.
|
69 |
+
```bash
|
70 |
+
chainlit run app.py -w
|
71 |
+
```
|
72 |
|
73 |
<p align = "center" draggable=”false”>
|
74 |
<img src="https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/54bcccf9-12e2-4cef-ab53-585c1e2b0fb5">
|
|
|
78 |
|
79 |
<p align = "center" draggable=”false”>
|
80 |
<img src="https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/854e4435-1dee-438a-9146-7174b39f7c61">
|
81 |
+
</p>
|
82 |
|
83 |
Awesome! Time to throw it into a docker container and prepare it for shipping!
|
|
|
|
|
84 |
|
85 |
+
</details>
|
86 |
|
87 |
<details>
|
88 |
<summary>🐳 Containerizing our App</summary>
|
89 |
|
90 |
1. Let's 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.
|
91 |
+
|
92 |
+
```bash
|
93 |
+
docker build -t llm-app .
|
94 |
+
```
|
95 |
|
96 |
2. 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.
|
97 |
+
|
98 |
+
```bash
|
99 |
+
docker run -p 7860:7860 llm-app
|
100 |
+
```
|
101 |
|
102 |
3. Visit http://localhost:7860 in your browser to see if the app runs correctly.
|
103 |
|
|
|
106 |
</p>
|
107 |
|
108 |
Great! Time to ship!
|
|
|
109 |
|
110 |
+
</details>
|
111 |
|
112 |
<details>
|
113 |
<summary>🚀 Deploying Your First LLM App</summary>
|
|
|
119 |
</p>
|
120 |
|
121 |
2. Setup your space as shown below:
|
122 |
+
|
123 |
- Owner: Your username
|
124 |
- Space Name: `llm-app`
|
125 |
- License: `Openrail`
|
|
|
187 |
|
188 |
<p></p>
|
189 |
|
190 |
+
### That's it for now! And so it begins.... :)
|