Welcome to Gemini-Bot, your intelligent companion designed to revolutionize the way you interact with information. Leveraging the power of the Gemini AI platform, Gemini-Bot provides a seamless and intuitive interface for users to make both text and image queries. Whether you're looking for quick answers, detailed explanations, or visual insights, Gemini-Bot is here to assist you. With its advanced features like session storage and the use of the Fetch API for efficient server communication, Gemini-Bot ensures a smooth and engaging user experience. Get ready to explore a world of information at your fingertips with Gemini-Bot.
- Text and Image Queries: Gemini-Bot allows users to make both text and image queries to the Gemini AI platform.
- Session Storage: User queries and corresponding answers are stored in the sessionStorage, ensuring that chats are retained even after page reloads.
- Fetch API: The Fetch API is used to send requests to the Flask server, enabling seamless communication without page reloads.
- Web browser (Chrome, Firefox, Safari, etc.)
- Internet connection
- Clone the Gemini-Bot repository from GitHub.
git clone https://github.com/yashksaini-coder/Gemini-Bot 
- Navigate to the Gemini-Bot directory.
cd Gemini-Bot
- Install the packages from requirements.txt
pip install -r requirements.txt 
- Run python app.pyfrom your preferred terminal.
- 
Text Queries: - Enter your text query in the text input field.
- Press the "Send" button or hit Enter to submit the query.
- View the response from the Gemini AI platform in the chat interface.
 
- 
Image Queries: - Click the "Upload Image" button.
- Select an image file from your device.
- Enter your specific query for the image.
- Wait for the response from the Gemini AI platform, which will be displayed in the chat interface.
 
- 
Session Storage: - User queries and responses are stored in sessionStorage.
- This ensures that chats are retained even if the page is reloaded or navigated away from.
 
- 
Fetch API: - The Fetch API is used to send requests to the Flask server.
- This communication method avoids page reloads, providing a smoother user experience.
 
- 
API Key: - Please obtain your own API key from the Gemini AI platform at https://ai.google.dev/.
- Replace the placeholder API key in the (.env) file with your own API key for proper functionality.
 Thank you for your interest in contributing to the Gemini-Bot repository! Your contributions are highly appreciated. This document provides guidelines on how to contribute to the project and how to keep your fork up-to-date with the original repository. To contribute to the Gemini-Bot repository, please follow these steps: - 
Fork the Repository: Click on the Fork button at the top right corner of the repository page. This will create a copy of the repository in your GitHub account. 
- 
Clone the Repository: Clone the forked repository to your local machine using the following command: git clone https://github.com/your-username/Gemini-Bot.git Replace your-usernamewith your GitHub username.
- 
Create a New Branch: Create a new branch for your changes using the following command: git checkout -b feature-branch-name Replace feature-branch-namewith a descriptive name for your branch.
- 
Make Changes: Make your desired changes to the codebase. 
- 
Commit Changes: Commit your changes using the following commands: git add . git commit -m "Describe your changes" 
- 
Push Changes to GitHub: Push your changes to your forked repository on GitHub using the following command: git push origin feature-branch-name 
- 
Create a Pull Request: Navigate to your forked repository on GitHub and click on the "Compare & pull request" button. Provide a descriptive title and detailed description of your changes, then submit the pull request. 
 To keep your fork up-to-date with the original repository, follow these steps: - 
Add the Original Repository as a Remote: Add the original repository as a remote to your local repository using the following command: git remote add upstream https://github.com/yashksaini-coder/Gemini-Bot 
- 
Fetch Updates from the Original Repository: Fetch the latest updates from the original repository using the following command: git fetch upstream 
- 
Merge Updates into Your Fork: Switch to the main branch of your local repository and merge the updates from the original repository using the following commands: git checkout main git merge upstream/main 
- 
Push Updates to Your GitHub Fork: Push the updates to your forked repository on GitHub using the following command: git push origin main 
 
Thank you for your contributions and happy coding! 🚀