This application will allow to upload image or video and user can prompt it one time or multiple times. Accordingly, the response will be given by this application.
Note that the code has been modularized for better readability, easy understanding and maintenance.
- Docker Desktop and Docker Compose. Also, know the commands of docker compose.
- For Image: Google AI Studio API Key - ai.google.dev
- For Video: Google Cloud Service Account with full access to Vertex AI - Refer to https://github.com/di37/getting-started-with-gemini-api.
- Run the command as follows.
docker compose up
- Navigate to http://localhost:9010/
Note: Ports can be changed in docker-compose.yaml - external port and Dockerfile - internal port.
Our application is now ready to run in our web browser.
Photo for the demo taken from:https://variety.com/wp-content/uploads/2020/01/shutterstock_editorial_10522870cv.jpg
Video for the demo taken from: https://all-free-download.com/free-footage/download/tiny_wild_bird_searching_for_food_in_nature_6892037.html
For better results, tinker Generation Configuration values and Safety Settings.
Feel free to make this application more better. And if you like it, please give it a star.