{"id":17603065,"url":"https://github.com/yjg30737/streamlit-chatbot","last_synced_at":"2026-05-01T17:35:44.549Z","repository":{"id":244602040,"uuid":"794515371","full_name":"yjg30737/streamlit-chatbot","owner":"yjg30737","description":"ChatGPT-like Streamlit chatbot \u0026 Simple image generator (DALLE3)","archived":false,"fork":false,"pushed_at":"2025-01-17T07:28:16.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T02:46:21.469Z","etag":null,"topics":["chatbot","image-generator","streamlit","streamlit-ai","streamlit-chatbot","streamlit-example","streamlit-image-generator"],"latest_commit_sha":null,"homepage":"","language":"Python","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/yjg30737.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,"zenodo":null}},"created_at":"2024-05-01T11:01:13.000Z","updated_at":"2025-01-17T07:28:18.000Z","dependencies_parsed_at":"2024-06-16T01:55:12.233Z","dependency_job_id":"dea49961-4150-4ccb-8d8e-ae6bd2876522","html_url":"https://github.com/yjg30737/streamlit-chatbot","commit_stats":null,"previous_names":["yjg30737/streamlit-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/streamlit-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fstreamlit-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fstreamlit-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fstreamlit-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fstreamlit-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/streamlit-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fstreamlit-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32507091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["chatbot","image-generator","streamlit","streamlit-ai","streamlit-chatbot","streamlit-example","streamlit-image-generator"],"created_at":"2024-10-22T13:38:39.497Z","updated_at":"2026-05-01T17:35:44.529Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamlit-chatbot\n[![](https://dcbadge.vercel.app/api/server/cHekprskVE)](https://discord.gg/cHekprskVE)\n\nChatGPT-like Streamlit chatbot \u0026 Simple image generator (DALLE3) OpenAI\nUsing supabase as database.\n\n## Requirements\n* streamlit\n* openai\n* st-supabase-connection\n\n## How to Install\nType below:\n\n```\n\u003e\u003e\u003e git clone [THE_REPO_URL]\n\u003e\u003e\u003e pip install -r requirements.txt\n\u003e\u003e\u003e streamlit hello\n```\n\nThen, make .streamlit directory and put secrets.toml into it and copy below:\n\n```toml\n# .streamlit/secrets.toml\nOPENAI_API_KEY=\n\n[connections.supabase]\nSUPABASE_URL = \nSUPABASE_KEY = \n```\n\nAlso, run this query in supabase:\n\n```sql\ncreate table\n  public.chat (\n    id bigint generated by default as identity not null,\n    created_at timestamp with time zone not null default now(),\n    content text null,\n    role text null,\n    constraint chat_pkey primary key (id)\n  ) tablespace pg_default;\n```\n\nIf the error \"new row violates row-level security policy for table\" in Supabase occurs, this is because the **Row-Level Security (RLS)** policy is not set for the table.\n\n**Workaround:**\n\n1. **Enable RLS policy for the table in the Supabase dashboard and set the appropriate policy.**\n2. **Add a policy that grants access to the required CRUD operations (e.g. `SELECT`, `INSERT`, `UPDATE`, `DELETE`).**\n\nThis will allow authenticated users to access the table.\n\n### Finally\nType `streamlit run main.py` to show the result. Browser will pop up and you can play it.\n\n## Preview\nhttps://youtu.be/8pHC8mKl3VI\n\n## Documentation\nIt is good practice to read following docs and articles to know the basic of using and making streamlit app.\n\nThese help me a lot to develop streamlit application.\n\n### For this application\n* \u003ca href=\"https://docs.streamlit.io/get-started\"\u003eGet Started\u003c/a\u003e\n* \u003ca href=\"https://docs.streamlit.io/develop/tutorials/databases/supabase\"\u003eConnect Streamlit to Supabase\u003c/a\u003e\n\n### For making Streamlit application\n* \u003ca href=\"https://docs.streamlit.io/develop/api-reference\"\u003eAPI Reference (Elements and widgets)\u003c/a\u003e\n* \u003ca href=\"https://docs.streamlit.io/develop/api-reference/connections/secrets.toml\"\u003eMake and manage \"secrets.toml\" file for configuration\u003c/a\u003e\n\n### For making your chatbot and your image generator\n* \u003ca href=\"https://docs.streamlit.io/develop/tutorials/llms/build-conversational-apps\"\u003eBuild a basic LLM chat app\u003c/a\u003e\n* \u003ca href=\"https://medium.com/@arjunaraneta/creating-an-image-generator-with-streamlit-and-replicate-api-hint-its-pretty-easy-a995ff3d1d0a\"\u003eCreating an image generator with streamlit and replicate api by arjunaraneta\u003c/a\u003e\n\n## Troubleshooting\nIf this error shows:\n\n```\nhttpcore.ConnectError: [Errno 11001] getaddrinfo failed\n```\n\nThat means you need to restore your database. Go to the supabase dashboard to restore it, then it will work like a charm as usual!\n\nIf you don't use Supabase a couple of days, you can't connect with it because it suspends the project. Of course, if you are using the Supabase in free, as i am.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fstreamlit-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fstreamlit-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fstreamlit-chatbot/lists"}