{"id":22665243,"url":"https://github.com/AiCodeCraft/Gemini-AI-Chat-Interface","last_synced_at":"2025-10-19T00:30:56.199Z","repository":{"id":263302506,"uuid":"889939203","full_name":"VolkanSah/gemini-ai-chat","owner":"VolkanSah","description":"This is a simple Python-based interface to interact with Google's Gemini AI models. It supports both text and image inputs and provides a seamless chat experience. ","archived":false,"fork":false,"pushed_at":"2024-11-17T20:12:35.000Z","size":150,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T09:14:09.743Z","etag":null,"topics":["ai","artificial-intelligence","gemini","gemini-ai","gemini-api","gemini-client","gemini-flash","gemini-pro","gemini-pro-api","gemini-pro-vision","gemini-server","google","google-ai-platform","google-ai-studio"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/AiCodeCarft/Gemini-Interface","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VolkanSah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["volkansah"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2024-11-17T16:15:17.000Z","updated_at":"2024-11-17T20:14:22.000Z","dependencies_parsed_at":"2024-11-17T18:21:36.832Z","dependency_job_id":"1c2813e6-778d-40fb-b762-7aaf5817f359","html_url":"https://github.com/VolkanSah/gemini-ai-chat","commit_stats":null,"previous_names":["volkansah/gemini-ai-chat"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2Fgemini-ai-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2Fgemini-ai-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2Fgemini-ai-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2Fgemini-ai-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolkanSah","download_url":"https://codeload.github.com/VolkanSah/gemini-ai-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237041310,"owners_count":19245490,"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","artificial-intelligence","gemini","gemini-ai","gemini-api","gemini-client","gemini-flash","gemini-pro","gemini-pro-api","gemini-pro-vision","gemini-server","google","google-ai-platform","google-ai-studio"],"created_at":"2024-12-09T13:29:44.131Z","updated_at":"2025-10-19T00:30:56.192Z","avatar_url":"https://github.com/VolkanSah.png","language":"Python","funding_links":["https://github.com/sponsors/volkansah"],"categories":[],"sub_categories":[],"readme":"\n# Gemini AI Chat Interface (Version 2)\n\nThis is a Python-based interface to interact with Google's Gemini AI models, now enhanced with advanced file processing capabilities. The app supports text, image, and **ZIP file inputs**, making it a powerful tool for developers and AI enthusiasts. This version is **powered by DeepSeek and me** , showcasing real-life coding collaboration between humans and AI.\n\n## Features\n\n- **Chat with Gemini Models**: Supports various Gemini models, including vision-enabled ones.\n- **Image Analysis**: Upload images for AI-powered analysis (e.g., `gemini-1.5-pro-vision-latest`).\n- **ZIP File Processing**: Extract and analyze contents of ZIP files, including text, code, and more.\n- **Customizable Settings**: Adjust temperature, max tokens, and system prompts for tailored interactions.\n- **Interactive UI**: Built with Streamlit for an intuitive user experience.\n- **Use Your Own API Key**: Securely integrate your Google AI API key.\n\n## Demo\n\nTry the app hosted on Hugging Face: [Gemini AI Chat](https://huggingface.co/spaces/AiCodeCarft/All-Gemini-Interface-Deluxe)\n\n![Gemini AI Chat Interface](gemini.png)\n\n---\n\n## Development Journey\n\nThis project started as a simple chat interface but evolved into a robust tool thanks to the collaboration between **DeepSeek (AI)** and **ME**. Here's how we tackled the challenges:\n\n### Challenges \u0026 Solutions\n1. **ZIP File Processing**:\n   - **Problem**: Initial versions only displayed file names, not their contents.\n   - **Solution**: We implemented a dynamic file reader that extracts and processes text from supported file types (e.g., `.txt`, `.py`, `.php`, `.csv`, `.pdf`).\n   - **Learning**: Handling binary files and ensuring compatibility with various file formats.\n\n2. **Error Handling**:\n   - **Problem**: The API sometimes returned empty responses or errors.\n   - **Solution**: Added robust error handling and validation for API responses, ensuring users receive clear feedback.\n\n3. **Real-Life Coding**:\n   - **Problem**: Gemini 1 and 2 APIs struggled with advanced file processing tasks.\n   - **Solution**: DeepSeek stepped in to enhance the code, demonstrating the power of human-AI collaboration.\n\n4. **User Experience**:\n   - **Problem**: Users needed clearer instructions and feedback.\n   - **Solution**: Improved UI with emojis, file previews, and detailed error messages.\n\n---\n\n## Setup Instructions\n\nFollow these steps to run the app locally:\n\n1. **Clone the Repository** or download the Repository:\n\n\n2. **Install Dependencies**:\n    Make sure you have Python 3.7 or newer installed.\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n3. **Run the App**:\n    ```bash\n    python app.py\n    ```\n\n4. **Access the App**:\n    Open your browser and navigate to `http://localhost:8501`.\n\n---\n\n## How to Use\n\n1. **Enter Your API Key**:\n   - Provide your Google AI API key in the sidebar.\n\n2. **Select a Model**:\n   - For text interactions, choose models like `gemini-1.5-pro`.\n   - For image-related tasks, use vision-enabled models (e.g., `gemini-1.5-pro-vision-latest`).\n\n3. **Adjust Settings**:\n   - Set `temperature` and `max tokens` for desired output style.\n\n4. **Upload Files**:\n   - Upload images, text files, or ZIP archives for analysis.\n   - Supported file types: `.txt`, `.py`, `.php`, `.csv`, `.pdf`, `.zip`, and more.\n\n5. **Chat with the AI**:\n   - Type your message and press Enter.\n\n---\n\n## Code Overview\n\nThe app uses:\n- **Streamlit**: For creating the interactive web UI.\n- **Google Generative AI Python SDK**: To connect with Google's Gemini models.\n- **Pillow**: For image processing.\n- **Base64 Encoding**: To handle image data.\n- **Zipfile \u0026 PyPDF2**: For processing ZIP and PDF files.\n\nFor more details, see the code in [`app.py`](app.py).\n\n---\n\n## Lessons Learned\n\nThis project highlights the importance of:\n- **Iterative Development**: Starting simple and gradually adding features.\n- **Error Handling**: Ensuring users receive clear feedback when something goes wrong.\n- **Human-AI Collaboration**: Combining human creativity with AI's problem-solving capabilities.\n\n---\n\n## Acknowledgments\n\n- **DeepSeek**: For providing AI-powered coding assistance and helping overcome technical challenges.\n- **VolkanSah**: For leading the project and integrating real-world use cases.\n- **Google Gemini API**: For enabling powerful AI interactions.\n\n---\n\n## Issues and Contributions\n\nIf you encounter any issues or have suggestions, feel free to open an issue or contribute by submitting a pull request.\n\n---\n\n## License\n\nThis project is licensed under the GPL3 License. See the [LICENSE](LICENSE) file for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAiCodeCraft%2FGemini-AI-Chat-Interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAiCodeCraft%2FGemini-AI-Chat-Interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAiCodeCraft%2FGemini-AI-Chat-Interface/lists"}