{"id":18033938,"url":"https://github.com/miolab/py_llm","last_synced_at":"2025-04-04T22:40:17.787Z","repository":{"id":181888766,"uuid":"666739188","full_name":"miolab/py_llm","owner":"miolab","description":"Sample Dockerized Python application that uses LangChain. ","archived":false,"fork":false,"pushed_at":"2023-08-08T20:57:34.000Z","size":290,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T07:15:36.273Z","etag":null,"topics":["docker","langchain","openai-api","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miolab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-15T12:16:35.000Z","updated_at":"2023-07-20T00:24:52.000Z","dependencies_parsed_at":"2023-07-18T00:55:53.116Z","dependency_job_id":null,"html_url":"https://github.com/miolab/py_llm","commit_stats":null,"previous_names":["miolab/py_llm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolab%2Fpy_llm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolab%2Fpy_llm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolab%2Fpy_llm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miolab%2Fpy_llm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miolab","download_url":"https://codeload.github.com/miolab/py_llm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247261584,"owners_count":20910105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","langchain","openai-api","python"],"created_at":"2024-10-30T11:09:00.915Z","updated_at":"2025-04-04T22:40:17.769Z","avatar_url":"https://github.com/miolab.png","language":"Python","readme":"# Py LLM\n\nThis repository contains a sample Dockerized Python application that uses LangChain and Streamlit together. The application encodes a given text into GPTed and displays it using Streamlit.\n\n__Note:__ This repository is intended for personal verification purposes and is not primarily intended for production development use. Preparation is required to use OpenAI's LangChain.\n\n## Sample Usage\n\n### Building and Running Locally\n\nYou can build the Docker image and launch the application using the following commands:\n\n- Prepare `.env` file\n\n  ```sh\n  cp .env.sample .env\n  ```\n\n  - Set `OPENAI_API_KEY` (required)\n\n- docker build and docker run\n\n  ```sh\n  docker build -t py_llm .\n  ```\n\n  ```sh\n  docker run --rm -p 8501:8501 -e OPENAI_API_KEY=$(cat .env | grep OPENAI_API_KEY | cut -d '=' -f2) py_llm\n  ```\n\n- After launch, access http://localhost:8501 in your browser to display the application's UI.\n\n## Application Features\n\nInteractively talk with OpenAI sample bot, GPT Assistant, in UI.\n\n- Example usage image\n\n  - User input\n\n    \u003cimg width=\"500\" alt=\"image\" src=\"https://github.com/miolab/py_llm/assets/33124627/0fb5be33-ced1-4cdd-bb00-c39e05ee5bb1\"\u003e\n\n  - Result\n\n    \u003cimg width=\"500\" alt=\"image\" src=\"https://github.com/miolab/py_llm/assets/33124627/8accdcfc-0ef8-4850-a69c-19576bb80018\"\u003e\n\n## Ref\n\n- LangChain https://www.langchain.com/\n- Streamlit https://streamlit.io/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiolab%2Fpy_llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiolab%2Fpy_llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiolab%2Fpy_llm/lists"}