Code to test Gemini Pro Vision and Gemini Pro (text only model that supports chat history)
- Create the file api_keys.json
- Put this content into it
{ "Google-Generative-Language" : "YOUR_API_KEY" }
- Get an API key
- Replace
YOUR_API_KEY
with your API key - (For gemini-pro-vision) Replace image.jpg with your image (if you want to use a png image, change the path in
main.py
)
1. Two containers of food
2. A bowl of soy sauce
3. A bowl of sesame seeds
4. A pair of chopsticks
No
1. Water
2. Milk
3. Honey
4. Olive oil
5. Coconut oil
6. Maple syrup
7. Aloe vera juice
8. Lemon juice
9. Apple cider vinegar
10. Green tea
--------------------------------------------------------------------------------
1. Water
2. Milk
3. Honey
4. Maple syrup
5. Aloe vera juice
6. Lemon juice
7. Apple cider vinegar
8. Green tea