This Flask web application utilizes Google's Generative AI models to generate detailed medical descriptions for uploaded images. The project, which focuses on medical content generation, incorporates two key models: the Pro-Vision model for in-depth medical descriptions and the Pro model for additional content generation. Upon uploading an image, the application uses the Pro-Vision model to generate comprehensive medical descriptions, ensuring clinical accuracy. Additionally, a validation step with the Pro model ensures that the context is indeed related to the medical field. The user is provided with generated content on successful validation, while the interface prompts for a valid medical image otherwise. The project's user interaction includes uploading images through a simple web form, content generation based on the uploaded images, and a validation step to ensure medical relevance. To maintain security, the application loads the required Google API key from environment variables. Further improvements could involve enhanced error handling, a more user-friendly interface, and thorough documentation for future development and maintenance.
- Google-GenerativeAI
- Flask
This will help you understand how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Follow these steps to install and set up the project directly from the GitHub repository:
-
Clone the Repository
- Open your terminal or command prompt.
- Navigate to the directory where you want to install the project.
- Run the following command to clone the GitHub repository:
git clone https://github.com/KalyanMurapaka45/--------------------.git
-
Create a Virtual Environment (Optional but recommended)
- It's a good practice to create a virtual environment to manage project dependencies. Run the following command:
conda create -p <Environment_Name> python==<python version> -y
- It's a good practice to create a virtual environment to manage project dependencies. Run the following command:
-
Activate the Virtual Environment (Optional)
- Activate the virtual environment based on your operating system:
conda activate <Environment_Name>/
- Activate the virtual environment based on your operating system:
-
Install Dependencies
- Navigate to the project directory:
cd [project_directory]
- Run the following command to install project dependencies:
pip install -r requirements.txt
- Navigate to the project directory:
-
Run the Project
- Start the project by running the appropriate command.
python app.py
- Start the project by running the appropriate command.
-
Access the Project
- Open a web browser or the appropriate client to access the project.
- Open a web browser or the appropriate client to access the project.
If you prefer to use Docker, you can install and run the project using a Docker container from DockerHub:
-
Pull the Docker Image
- Open your terminal or command prompt.
- Run the following command to pull the Docker image from DockerHub:
This command downloads the Docker image from the DockerHub.
docker pull kalyan45/movierecommend-app
-
Run the Docker Container
- Start the Docker container by running the following command. Adjust the port mapping as needed:
This command launches the project within a Docker container.
docker run -p 5000:5000 kalyan45/movierecommend-app
- Start the Docker container by running the following command. Adjust the port mapping as needed:
-
Access the Project
- Open a web browser or the appropriate client to access the project.
- Open a web browser or the appropriate client to access the project.
To use this project, you need an API key from Google Gemini Large Language Model. Follow these steps to obtain and set up your API key:
-
Get API Key:
- Visit Alkali App Click Here.
- Follow the instructions to create an account and obtain your API key.
-
Set Up API Key:
- Create a file named
.env
in the project root. - Add your API key to the
.env
file:GOOGLE_API_KEY=your_api_key_here
Note: Keep your API key confidential. Do not share it publicly or expose it in your code.
- Create a file named
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
• Report bugs: If you encounter any bugs, please let us know. Open up an issue and let us know the problem.
• Contribute code: If you are a developer and want to contribute, follow the instructions below to get started!
- Fork the Project
- Create your Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
• Suggestions: If you don't want to code but have some awesome ideas, open up an issue explaining some updates or improvements you would like to see!
This project is licensed under the Open Source Initiative (OSI) approved GNU General Public License v3.0 License - see the LICENSE.txt file for details.
Hema Kalyan Murapaka - kalyanmurapaka274@gmail.com
We'd like to extend our gratitude to all individuals and organizations who have played a role in the development and success of this project. Your support, whether through contributions, inspiration, or encouragement, has been invaluable. Thank you for being a part of our journey.