{"id":30692070,"url":"https://github.com/martcpp/build-with-ai-uniben","last_synced_at":"2025-09-02T04:47:41.125Z","repository":{"id":236059368,"uuid":"791795023","full_name":"martcpp/build-with-ai-uniben","owner":"martcpp","description":"this is a chat bot that uses gemini google ai model to create a chat bot","archived":false,"fork":false,"pushed_at":"2024-04-25T12:49:04.000Z","size":1713,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T13:54:46.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/martcpp.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}},"created_at":"2024-04-25T11:41:03.000Z","updated_at":"2024-04-25T12:49:07.000Z","dependencies_parsed_at":"2024-04-25T13:53:51.210Z","dependency_job_id":"7714990c-d842-40f4-bd88-6aeeb44e3148","html_url":"https://github.com/martcpp/build-with-ai-uniben","commit_stats":null,"previous_names":["martcpp/build-with-ai-uniben"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/martcpp/build-with-ai-uniben","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fbuild-with-ai-uniben","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fbuild-with-ai-uniben/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fbuild-with-ai-uniben/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fbuild-with-ai-uniben/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martcpp","download_url":"https://codeload.github.com/martcpp/build-with-ai-uniben/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martcpp%2Fbuild-with-ai-uniben/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273233274,"owners_count":25068731,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"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":"2025-09-02T04:47:40.583Z","updated_at":"2025-09-02T04:47:41.112Z","avatar_url":"https://github.com/martcpp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Chat UI (Proof of Concept)\n\nThis demonstrates a simple UI (using Streamlit's [Chat elements](https://docs.streamlit.io/library/api-reference/chat)) that uses interacts with an AI via an api (Google's [Gemini model](https://ai.google.dev/docs/gemini_api_overview) here).\n\n## Demo\n![](media/demo-ai-chat-ui-with-gemini-victorgeislinger.gif)\n\n\n## Install\n\n0. Ideally create a new Python environment (`venv`, `conda`, etc.).\n    - Tested on Python 3.11.5\n1. Run `pip install -r requirements.txt` to install relevant packages.\n2. Get an API key from Google's Google AI Studio formerly [MakerSuite](https://makersuite.google.com/app/apikey).\n    - See the Gemini API [docs](https://ai.google.dev/tutorials/setup) for more details.\n3. Add your API key as an environment variable called `GOOGLE_API_KEY`.\n    - If you are on a Mac, this likely is editing `~/.zshrc` or `~/.bashrc` and adding `export GOOGLE_API_KEY=...` with your own key. Make sure you reload the shell.\n    - If you're having trouble and like to just get it to work, you can change the app script `app_chat.py` so the variable `GOOGLE_API_KEY` is set to the string value of your key. Note this is a bit more risky but probably fine if you're testing out without public access.\n4. Run in your terminal: `streamlit run app_chat.py`.\n    - When using a Python environment, make sure `streamlit` is the correct one associated with your environment. Seen some weirdness before with `conda` and the shell not picking up the correct `streamlit`; had to manually call it with something like `MyUser/conda/envs/my_env/bin/streamlit`.\n5. Browser should open where you can now interact with the UI! Otherwise, you might have to go to http://localhost:8501/ manually.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartcpp%2Fbuild-with-ai-uniben","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartcpp%2Fbuild-with-ai-uniben","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartcpp%2Fbuild-with-ai-uniben/lists"}