philmui commited on
Commit
c1213fc
Β·
1 Parent(s): 27aacbc
Files changed (1) hide show
  1. README.md +0 -69
README.md CHANGED
@@ -1,4 +1,3 @@
1
- <<<<<<< HEAD
2
  ---
3
  title: BeyondChatGPT Demo
4
  emoji: πŸ“‰
@@ -189,71 +188,3 @@ Who else is diving into the world of AI? Let's connect! πŸŒπŸ’‘
189
  <p></p>
190
 
191
  ### That's it for now! And so it begins.... :)
192
- =======
193
- # Beyond-ChatGPT
194
- Chainlit App using Python streaming for Level 0 MLOps
195
-
196
- LLM Application with Chainlit, Docker, and Huggingface Spaces
197
- In this guide, we'll walk you through the steps to create a Language Learning Model (LLM) application using Chainlit, then containerize it using Docker, and finally deploy it on Huggingface Spaces.
198
-
199
- Prerequisites
200
- A GitHub account
201
- Docker installed on your local machine
202
- A Huggingface Spaces account
203
-
204
- ### Building our App
205
- Clone this repo
206
-
207
- Navigate inside this repo
208
-
209
- ### Install requirements using `pip install -r requirements.txt`?????????
210
-
211
- Add your OpenAI Key to `.env` file and save the file.
212
-
213
- Let's try deploying it locally. Make sure you're in the python environment where you installed Chainlit and OpenAI.
214
-
215
- Run the app using Chainlit
216
-
217
- ```
218
- chainlit run app.py -w
219
- ```
220
-
221
- Great work! Let's see if we can interact with our chatbot.
222
-
223
- It works! Let's ship it!
224
-
225
-
226
- ### Deploy to Huggingface Spaces
227
-
228
- Login to Huggingface Spaces CLI
229
-
230
- ``` bash
231
- huggingface-cli login
232
- ```
233
-
234
- Follow the prompts to authenticate.
235
-
236
-
237
-
238
- Push Docker Image to Huggingface Container Registry
239
-
240
- ```
241
- docker tag llm-app:latest huggingface/your-username/llm-app:latest
242
- docker push huggingface/your-username/llm-app:latest
243
- ```
244
-
245
- Deploy to Huggingface Spaces
246
-
247
-
248
- Deploying on Huggingface Spaces using a custom Docker image involves using their web interface. Go to Huggingface Spaces and create a new space, then set it up to use your Docker image from the Huggingface Container Registry.
249
-
250
- Access the Application
251
-
252
- Once deployed, access your app at:
253
-
254
- ruby
255
- Copy code
256
- https://huggingface.co/spaces/your-username/llm-app
257
- Conclusion
258
- You've successfully created an LLM application with Chainlit, containerized it with Docker, and deployed it on Huggingface Spaces. Visit the link to interact with your deployed application.
259
- >>>>>>> 8377e05 (Update README.md)
 
 
1
  ---
2
  title: BeyondChatGPT Demo
3
  emoji: πŸ“‰
 
188
  <p></p>
189
 
190
  ### That's it for now! And so it begins.... :)