{"id":13341911,"url":"https://github.com/AppleHolic/chatgpt-streamlit","last_synced_at":"2025-03-11T23:30:31.237Z","repository":{"id":100212646,"uuid":"608628128","full_name":"AppleHolic/chatgpt-streamlit","owner":"AppleHolic","description":"Simple demo project with OpenAI's API and TTS","archived":false,"fork":false,"pushed_at":"2023-03-02T15:49:21.000Z","size":46,"stargazers_count":15,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T10:08:03.206Z","etag":null,"topics":["chatgpt","openai","streamlit","tts","whisper"],"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/AppleHolic.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-02T12:15:40.000Z","updated_at":"2024-08-18T17:14:05.000Z","dependencies_parsed_at":"2023-03-06T07:31:00.998Z","dependency_job_id":null,"html_url":"https://github.com/AppleHolic/chatgpt-streamlit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppleHolic%2Fchatgpt-streamlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppleHolic%2Fchatgpt-streamlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppleHolic%2Fchatgpt-streamlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppleHolic%2Fchatgpt-streamlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppleHolic","download_url":"https://codeload.github.com/AppleHolic/chatgpt-streamlit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243129530,"owners_count":20241030,"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":["chatgpt","openai","streamlit","tts","whisper"],"created_at":"2024-07-29T19:26:40.915Z","updated_at":"2025-03-11T23:30:31.226Z","avatar_url":"https://github.com/AppleHolic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT Streamlit\n\nThis project for making a demo based on ChatGPT and speech interfaces via [streamlit](https://docs.streamlit.io/).\n\n- Docs of ChatGPT and Whisper API : [OpenAI Documentation](https://platform.openai.com/docs/introduction)\n- Workflow of demo\n  1. Recording audio\n  2. STT (Speech-to-text) with Whisper API\n  3. Get an answer from ChatGPT API\n  4. (optional) Making an audio from ChatGPT's answer\n\n## Usage\n\n- Environment \n  - python 3.10\n  - GPU : cuda 11.6, RTX Titan\n  - OS : ubuntu20.04 - wsl2\n  - IDE : VSCode\n\n- OpenAI API\n  - You must get a secrey key of OpenAI platform from [This Page.](https://platform.openai.com/account/api-keys)\n\n- Install and run\n  \n    ```bash\n    # with virtualenv\n    $ virtualenv .venv\n    $ . .venv/bin/activate\n\n    # openai - chatgpt, whisper only\n    $ pip install .\n\n    # openai with simple TTS (with cpu version of pytorch)\n    $ pip install .[tts] --extra-index-url https://download.pytorch.org/whl/cpu\n\n    # run streamlit - with environment variable of API KEY\n    $ OPENAI_API_KEY=[YOUR-API-KEY] streamlit run chatgpt_streamlit/app.py \n    ```\n\n## Others\n\n- Demo Page (all tasks of workflow are done)\n  \n  ![Demo Image](assets/screenshot-streamlit-page.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAppleHolic%2Fchatgpt-streamlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAppleHolic%2Fchatgpt-streamlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAppleHolic%2Fchatgpt-streamlit/lists"}