Coder Social home page Coder Social logo

maulik22995 / gemini-ai-sample Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 517 KB

This is sample project for utilising Google's latest gemini feature

Kotlin 100.00%
android compose dependency-injection gemini gemini-ai gemini-pro hilt-android kotlin kotlin-android mvvm-architecture

gemini-ai-sample's Introduction

Gemini-AI SDK Sample Usage

This project demonstrates the usage of the Gemini-AI SDK for Android. It showcases how to integrate the Gemini-AI SDK into your Android application and utilize its features.

SDK : https://ai.google.dev/tutorials/android_quickstart

Introduction

Briefly introduce Gemini-AI SDK and its capabilities. Highlight any key features or benefits it offers to developers.

Installation

To integrate Gemini-AI SDK into your Android project, follow these steps:

Before you begin, ensure you have an API key, You can generate API from here: https://aistudio.google.com/

Create secrets.properties file at the project level and add the API key

apiKey=YOUR API KEY

This simple demo uses three features from Generative AI SDK.

  • Generate text from text-only input
  • Generate text from text-and-image input (multimodal)
  • Build multi-turn conversations (chat)

Sample

https://github.com/maulik22995/Gemini-Sample/blob/master/sample/gemini.png

Check out the full sample video: https://drive.google.com/file/d/1t8wSbivJiuJoz3lWtUjoer3ASZbDQkAM/view?usp=sharing

Used Language, Architecture & Framework

 ● Jetpak compose UI toolkit
 ● Kotlin
 ● MVVM design pattern and Jetpack
 ● Hilt dependency injection framework
 ● Coroutines

🛠️ Tech Stack

Library About Version
compose Bom UI- toolkit 2024.02.00
Hilt Dependency injection framework 2.48
coroutine Kotlin corutine framwork 1.3.9
coil compose image loading 2.5.0
genrativeAI Google Generative AI sdk 0.2.0

🚀 To run on an Android device

 Open Android Studio,

 Clone the repo,
 https://github.com/maulik22995/Gemini-AI-Sample.git

 Build the project,

 Connect the Android device and enable USB debugging,
  
 Hit "Run". Done!

gemini-ai-sample's People

Contributors

maulik22995 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.