{"id":20878734,"url":"https://github.com/mmbazel/aie3-prework-challenge-01","last_synced_at":"2026-07-05T19:31:54.225Z","repository":{"id":241970389,"uuid":"808342115","full_name":"MMBazel/AIE3-prework-challenge-01","owner":"MMBazel","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-30T22:45:53.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T09:39:33.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MMBazel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-30T21:44:46.000Z","updated_at":"2024-05-31T22:34:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b3d6700-f68c-4ec6-8855-e4c485aee6ed","html_url":"https://github.com/MMBazel/AIE3-prework-challenge-01","commit_stats":null,"previous_names":["mmbazel/aie3-prework-challenge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MMBazel/AIE3-prework-challenge-01","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMBazel%2FAIE3-prework-challenge-01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMBazel%2FAIE3-prework-challenge-01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMBazel%2FAIE3-prework-challenge-01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMBazel%2FAIE3-prework-challenge-01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MMBazel","download_url":"https://codeload.github.com/MMBazel/AIE3-prework-challenge-01/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MMBazel%2FAIE3-prework-challenge-01/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35167259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T07:14:06.196Z","updated_at":"2026-07-05T19:31:54.121Z","avatar_url":"https://github.com/MMBazel.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AIE3-prework-challenge\n---\ntitle: BeyondChatGPT Demo\nemoji: 📉\ncolorFrom: pink\ncolorTo: yellow\nsdk: docker\npinned: false\napp_port: 7860\n---\n\n\u003cp align = \"center\" draggable=”false” \u003e\u003cimg src=\"https://github.com/AI-Maker-Space/LLM-Dev-101/assets/37101144/d1343317-fa2f-41e1-8af1-1dbb18399719\" \n     width=\"200px\"\n     height=\"auto\"/\u003e\n\u003c/p\u003e\n\n\n## \u003ch1 align=\"center\" id=\"heading\"\u003e:wave: Welcome to Beyond ChatGPT!!\u003c/h1\u003e\n\nFor a step-by-step YouTube video walkthrough, watch this! [Deploying Chainlit app on Hugging Face](https://www.youtube.com/live/pRbbZcL0NMI?si=NAYhMZ_suAY84f06\u0026t=2119)\n\n![Beyond ChatGPT: Build Your First LLM Application](https://github.com/AI-Maker-Space/Beyond-ChatGPT/assets/48775140/cb7a74b8-28af-4d12-a008-8f5a51d47b4c)\n\n## 🤖 Your First LLM App\n\n\u003e If you need an introduction to `git`, or information on how to set up API keys for the tools we'll be using in this repository - check out our [Interactive Dev Environment for LLM Development](https://github.com/AI-Maker-Space/Interactive-Dev-Environment-for-LLM-Development/tree/main) which has everything you'd need to get started in this repository!\n\nIn this repository, we'll walk you through the steps to create a Large Language Model (LLM) application using Chainlit, then containerize it using Docker, and finally deploy it on Huggingface Spaces.\n\nAre you ready? Let's get started!\n\n\u003cdetails\u003e\n  \u003csummary\u003e🖥️ Accessing \"gpt-3.5-turbo\" (ChatGPT) like a developer\u003c/summary\u003e\n\n1. Head to [this notebook](https://colab.research.google.com/drive/1mOzbgf4a2SP5qQj33ZxTz2a01-5eXqk2?usp=sharing) and follow along with the instructions!\n\n2. Complete the notebook and try out your own system/assistant messages!\n\nThat's it! Head to the next step and start building your application!\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n  \u003csummary\u003e🏗️ Building Your First LLM App\u003c/summary\u003e\n\n1. Clone [this](https://github.com/AI-Maker-Space/Beyond-ChatGPT/tree/main) repo.\n\n     ``` bash\n     git clone https://github.com/AI-Maker-Space/Beyond-ChatGPT.git\n     ```\n\n2. Navigate inside this repo\n     ``` bash\n     cd Beyond-ChatGPT\n     ```\n\n3. Install the packages required for this python envirnoment in `requirements.txt`.\n     ``` bash\n     pip install -r requirements.txt\n     ``` \n\n4. Open your `.env` file. Replace the `###` in your `.env` file with your OpenAI Key and save the file.\n     ``` bash\n     OPENAI_API_KEY=sk-###\n     ```\n\n5. 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.\n     ``` bash\n     chainlit run app.py -w\n     ```\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/54bcccf9-12e2-4cef-ab53-585c1e2b0fb5\"\u003e \n\u003c/p\u003e\n\nGreat work! Let's see if we can interact with our chatbot.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/854e4435-1dee-438a-9146-7174b39f7c61\"\u003e \n\u003c/p\u003e \n\nAwesome! Time to throw it into a docker container and prepare it for shipping!\n\u003c/details\u003e\n\n\n\n\u003cdetails\u003e\n  \u003csummary\u003e🐳 Containerizing our App\u003c/summary\u003e\n\n1. 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.\n     \n     ``` bash\n     docker build -t llm-app .\n     ```\n\n2. 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.\n    \n     ``` bash\n     docker run -p 7860:7860 llm-app\n     ```\n\n3. Visit http://localhost:7860 in your browser to see if the app runs correctly.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/2c764f25-09a0-431b-8d28-32246e0ca1b7\"\u003e \n\u003c/p\u003e\n\nGreat! Time to ship!\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n  \u003csummary\u003e🚀 Deploying Your First LLM App\u003c/summary\u003e\n\n1. Let's create a new Huggingface Space. Navigate to [Huggingface](https://huggingface.co) and click on your profile picture on the top right. Then click on `New Space`.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/f0656408-28b8-4876-9887-8f0c4b882bae\"\u003e \n\u003c/p\u003e\n\n2. Setup your space as shown below:\n   \n- Owner: Your username\n- Space Name: `llm-app`\n- License: `Openrail`\n- Select the Space SDK: `Docker`\n- Docker Template: `Blank`\n- Space Hardware: `CPU basic - 2 vCPU - 16 GB - Free`\n- Repo type: `Public`\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/8f16afd1-6b46-4d9f-b642-8fefe355c5c9\"\u003e \n\u003c/p\u003e\n\n3. You should see something like this. We're now ready to send our files to our Huggingface Space. After cloning, move your files to this repo and push it along with your docker file. You DO NOT need to create a Dockerfile. Make sure NOT TO push your `.env` file. This should automatically be ignored.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/cbf366e2-7613-4223-932a-72c67a73f9c6\"\u003e \n\u003c/p\u003e\n\n4. After pushing all files, navigate to the settings in the top right to add your OpenAI API key.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/a1123a6f-abdd-4f76-bea4-39acf9928762\"\u003e \n\u003c/p\u003e\n\n5. Scroll down to `Variables and secrets` and click on `New secret` on the top right.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/a8a4a25d-752b-4036-b572-93381370c2db\"\u003e \n\u003c/p\u003e\n\n6. Set the name to `OPENAI_API_KEY` and add your OpenAI key under `Value`. Click save.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/0a897538-1779-48ff-bcb4-486af30f7a14\"\u003e \n\u003c/p\u003e\n\n7. To ensure your key is being used, we recommend you `Restart this Space`.\n\n\u003cp align = \"center\" draggable=”false”\u003e\n\u003cimg src=\"https://github.com/AI-Maker-Space/LLMOps-Dev-101/assets/37101144/fb1d83af-6ebe-4676-8bf5-b6d88f07c583\"\u003e \n\u003c/p\u003e\n\n8. Congratulations! You just deployed your first LLM! 🚀🚀🚀 Get on linkedin and post your results and experience! Make sure to tag us at #AIMakerspace !\n\nHere's a template to get your post started!\n\n```\n🚀🎉 Exciting News! 🎉🚀\n\n🏗️ Today, I'm thrilled to announce that I've successfully built and shipped my first-ever LLM using the powerful combination of Chainlit, Docker, and the OpenAI API! 🖥️\n\nCheck it out 👇\n[LINK TO APP]\n\nA big shoutout to the @**AI Makerspace** for all making this possible. Couldn't have done it without the incredible community there. 🤗🙏\n\nLooking forward to building with the community! 🙌✨ Here's to many more creations ahead! 🥂🎉\n\nWho else is diving into the world of AI? Let's connect! 🌐💡\n\n#FirstLLM #Chainlit #Docker #OpenAI #AIMakerspace\n```\n\n\u003c/details\u003e\n\n\u003cp\u003e\u003c/p\u003e\n\n### That's it for now!  And so it begins.... :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmbazel%2Faie3-prework-challenge-01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmbazel%2Faie3-prework-challenge-01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmbazel%2Faie3-prework-challenge-01/lists"}