{"id":19538090,"url":"https://github.com/nirmit27/gemini-ai","last_synced_at":"2025-04-19T12:50:35.027Z","repository":{"id":255574118,"uuid":"852055577","full_name":"nirmit27/gemini-ai","owner":"nirmit27","description":"This s a Python-based Streamlit web application that utilizes the Gemini Pro API. It offers an intuitive interface for interacting with and visualizing data from the API.","archived":false,"fork":false,"pushed_at":"2025-01-09T12:48:41.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T08:03:23.971Z","etag":null,"topics":["ai-chatbot","chatbot","gemini","gemini-api","gemini-chatbot","streamlit","streamlit-webapp","webapp"],"latest_commit_sha":null,"homepage":"https://gemini-ai-6pieo6evhzghyj5rgazsje.streamlit.app/","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/nirmit27.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-09-04T06:34:50.000Z","updated_at":"2025-03-10T02:33:15.000Z","dependencies_parsed_at":"2024-09-08T05:31:48.505Z","dependency_job_id":"b9af671a-ef6f-4fa0-835c-fe7ae2612104","html_url":"https://github.com/nirmit27/gemini-ai","commit_stats":null,"previous_names":["nirmit27/gemini-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirmit27%2Fgemini-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirmit27%2Fgemini-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirmit27%2Fgemini-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirmit27%2Fgemini-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nirmit27","download_url":"https://codeload.github.com/nirmit27/gemini-ai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249699347,"owners_count":21312379,"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":["ai-chatbot","chatbot","gemini","gemini-api","gemini-chatbot","streamlit","streamlit-webapp","webapp"],"created_at":"2024-11-11T02:31:26.064Z","updated_at":"2025-04-19T12:50:35.017Z","avatar_url":"https://github.com/nirmit27.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gemini AI\n\nGemini AI is an advanced AI-powered web application that provides a suite of services, including a chatbot, image captioning, text embedding, and a Q\u0026A feature. The application is built using **[Streamlit](https://docs.streamlit.io/)**, leveraging the **Gemini Pro** model from Google’s generative AI capabilities.\n\n## Features\n\n### 1. ChatBot\n\n- Engage with the Gemini Pro chatbot, capable of understanding and generating human-like text responses.\n- The chat history is displayed to maintain the conversation context.\n\n### 2. Image Captioning:\n\n- Upload an image and receive a descriptive caption generated by the Gemini AI model.\n- Supports `.jpg`, `.jpeg`, and `.png` file formats.\n\n### 3. Text Embedding:\n\n- Input text to generate embeddings useful for document retrieval and other NLP tasks.\n- Embeddings are displayed as a list of floating-point numbers.\n\n### 4. Ask Me Anything:\n\n- Pose any question, and the Gemini AI model will generate an informative answer.\n\n## Project Structure\n\n- `main.py`: The main file that sets up the Streamlit app and handles navigation between the different services offered.\n- `streamlit_util.py`: Contains utility functions used across the Streamlit app for layout and styling.\n- `gemini_util.py`: Contains utility functions for interacting with the Gemini AI models, including loading models, generating captions, embedding text, and handling user prompts.\n\n## Setup and Installation\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/username/gemini-ai.git\ncd gemini-ai\n```\n\n### 2. Install the required dependencies:\n\n- Ensure you have Python 3.8 or above. Install dependencies using `pip`.\n\n  ```bash\n  pip install -r requirements.txt\n  ```\n\n### 3. Set up your environment:\n\n- You'll need an API key from Google’s generative AI services. Set it up in your environment.\n\n  ```bash\n  export API_KEY='your_api_key_here'\n  ```\n\n### 4. Run the application:\n\n- Start the Streamlit app.\n\n  ```bash\n  streamlit run main.py\n  ```\n\n## Usage\n\n- ChatBot: Select the \"ChatBot\" option from the sidebar to interact with the AI chatbot.\n- Image Captioning: Upload an image in the \"Image Captioning\" section to receive a descriptive caption.\n- Text Embedding: Enter a piece of text in the \"Embed text\" section to get embeddings.\n- Ask Me Anything: Pose a question in the \"Ask Me Anything\" section to get an answer.\n\n## Requirements\n\n- Python 3.8+\n- Streamlit\n- Pillow\n- Google Generative AI SDK\n- streamlit-option-menu\n\nCheck out [requirements.txt](requirements.txt) for more details.\n\n## Deployment link\n\n#### [Check it out!](https://gemini-ai-6pieo6evhzghyj5rgazsje.streamlit.app/)\n\n\n## License\n\nThis project is licensed under the [MIT](https://opensource.org/license/mit/) License. Check the [LICENSE](LICENSE) file for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirmit27%2Fgemini-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnirmit27%2Fgemini-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirmit27%2Fgemini-ai/lists"}