SlideShare a Scribd company logo
1 of 10
Getting Started with
Gemini Pro
Overview
Gemini is the first model to outperform human experts on
MMLU (Massive Multitask Language Understanding), one of
the most popular methods to test the knowledge and
problem solving abilities of AI models.
largeIMAGEmodel
largelanguagemodel
Already started rolling out Gemini in our products: Gemini
Nano is in Android, starting with Pixel 8 Pro, and a
specifically tuned version of Gemini Pro is in Bard.
Gemini Pro available for developers and enterprises to build
for your own use cases
Pricing:-
How can we Use Gemini Pro
The first version of Gemini Pro is now accessible via
the Gemini API and here’s more about it
● Gemini Pro outperforms other similarly-sized models on
research benchmarks.
● Today’s version comes with a 32K context window for
text, and future versions will have a larger context
window.
● It’s free to use right now, within limits, and it will
be competitively priced.
● It comes with a range of features: function calling,
embeddings, semantic retrieval and custom knowledge
grounding, and chat functionality.
● It supports 38 languages across 180+ countries and
territories worldwide.
● In today’s release, Gemini Pro accepts text as input and
generates text as output. We’ve also made a dedicated
Gemini Pro Vision multimodal endpoint available today
that accepts text and imagery as input, with text output.
● SDKs are available for Gemini Pro to help you build apps
that run anywhere. Python, Android
(Kotlin), Node.js, Swift and JavaScript are all supported.
Requirements:-
● streamlit
● google-generativeai
● python-dotenv
Project 1
Google API:-
Get API key | Google AI Studio
Code:-
Project 1
from dotenv import load_dotenv
load_dotenv()
import streamlit as st
import google.generativeai as genai
import os
genai.configure(api_key=os.getenv("GOOGLE_API"))
model = genai.GenerativeModel('gemini-pro')
def get_gemini_response(question):
response = model.generate_content(question)
return response.text
def main():
st.title("Gemini chat App")
# Get user input
user_input = st.text_input("Enter something:",key="input")
# Display the user input
st.write("You entered:", user_input)
submit = st.button("Submit")
# Check if the submit button is pressed
if submit:
# Respond when the button is pressed
response = get_gemini_response(user_input)
st.subheader("The Response is: ")
st.write(response)
if __name__ == "__main__":
main()
Thank You

More Related Content

Similar to geminipro (google developer student clubs Haldia Institute of Technology 2023 to 2024).pptx

Psi android telephony_case_study_v10
Psi android telephony_case_study_v10Psi android telephony_case_study_v10
Psi android telephony_case_study_v10
Primesoftinc
 
TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019
TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019
TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019
upssingh
 
Pradeep_iOS_Developer
Pradeep_iOS_DeveloperPradeep_iOS_Developer
Pradeep_iOS_Developer
Pradeep kn
 
Jose l ugia 6 wunderkinder, momenta
Jose l ugia  6 wunderkinder, momentaJose l ugia  6 wunderkinder, momenta
Jose l ugia 6 wunderkinder, momenta
apps4allru
 
iPhone Developer_ankush
iPhone Developer_ankushiPhone Developer_ankush
iPhone Developer_ankush
ankush Ankush
 

Similar to geminipro (google developer student clubs Haldia Institute of Technology 2023 to 2024).pptx (20)

Why Should You Consider Android Development As A Career
Why Should You Consider Android Development As A CareerWhy Should You Consider Android Development As A Career
Why Should You Consider Android Development As A Career
 
Decoding Google’s Gemini Model | Everything You Need to Know
Decoding Google’s Gemini Model | Everything You Need to KnowDecoding Google’s Gemini Model | Everything You Need to Know
Decoding Google’s Gemini Model | Everything You Need to Know
 
Supratik_CV_Photo
Supratik_CV_PhotoSupratik_CV_Photo
Supratik_CV_Photo
 
Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year  Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year
 
Best Frameworks for Android App Development in 2022.pdf
Best Frameworks for Android App Development in 2022.pdfBest Frameworks for Android App Development in 2022.pdf
Best Frameworks for Android App Development in 2022.pdf
 
Resume
ResumeResume
Resume
 
Supratik_CV_Photo
Supratik_CV_PhotoSupratik_CV_Photo
Supratik_CV_Photo
 
Supratik_CV_Photo
Supratik_CV_PhotoSupratik_CV_Photo
Supratik_CV_Photo
 
Top 13 best front end web development tools to consider in 2021
Top 13 best front end web development tools to consider in 2021Top 13 best front end web development tools to consider in 2021
Top 13 best front end web development tools to consider in 2021
 
2018 top ide's for andriod development
2018 top ide's for andriod development2018 top ide's for andriod development
2018 top ide's for andriod development
 
Hybrid Mobile App Development Frameworks 2016
Hybrid Mobile App Development Frameworks 2016Hybrid Mobile App Development Frameworks 2016
Hybrid Mobile App Development Frameworks 2016
 
deepak
deepakdeepak
deepak
 
Psi android telephony_case_study_v10
Psi android telephony_case_study_v10Psi android telephony_case_study_v10
Psi android telephony_case_study_v10
 
Resume
ResumeResume
Resume
 
ISS Art. How to do IT. Kotlin Multiplatform
ISS Art. How to do IT. Kotlin MultiplatformISS Art. How to do IT. Kotlin Multiplatform
ISS Art. How to do IT. Kotlin Multiplatform
 
TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019
TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019
TOP 5 TECHNOLOGIES TO CREATE A COMPETENT ANDROID APP IN 2019
 
Top 8 Flutter App Development Tools.pdf
Top 8 Flutter App Development Tools.pdfTop 8 Flutter App Development Tools.pdf
Top 8 Flutter App Development Tools.pdf
 
Pradeep_iOS_Developer
Pradeep_iOS_DeveloperPradeep_iOS_Developer
Pradeep_iOS_Developer
 
Jose l ugia 6 wunderkinder, momenta
Jose l ugia  6 wunderkinder, momentaJose l ugia  6 wunderkinder, momenta
Jose l ugia 6 wunderkinder, momenta
 
iPhone Developer_ankush
iPhone Developer_ankushiPhone Developer_ankush
iPhone Developer_ankush
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 

Recently uploaded (20)

How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

geminipro (google developer student clubs Haldia Institute of Technology 2023 to 2024).pptx

  • 2. Overview Gemini is the first model to outperform human experts on MMLU (Massive Multitask Language Understanding), one of the most popular methods to test the knowledge and problem solving abilities of AI models. largeIMAGEmodel largelanguagemodel
  • 3. Already started rolling out Gemini in our products: Gemini Nano is in Android, starting with Pixel 8 Pro, and a specifically tuned version of Gemini Pro is in Bard. Gemini Pro available for developers and enterprises to build for your own use cases
  • 4.
  • 6. How can we Use Gemini Pro The first version of Gemini Pro is now accessible via the Gemini API and here’s more about it ● Gemini Pro outperforms other similarly-sized models on research benchmarks. ● Today’s version comes with a 32K context window for text, and future versions will have a larger context window. ● It’s free to use right now, within limits, and it will be competitively priced.
  • 7. ● It comes with a range of features: function calling, embeddings, semantic retrieval and custom knowledge grounding, and chat functionality. ● It supports 38 languages across 180+ countries and territories worldwide. ● In today’s release, Gemini Pro accepts text as input and generates text as output. We’ve also made a dedicated Gemini Pro Vision multimodal endpoint available today that accepts text and imagery as input, with text output. ● SDKs are available for Gemini Pro to help you build apps that run anywhere. Python, Android (Kotlin), Node.js, Swift and JavaScript are all supported.
  • 8. Requirements:- ● streamlit ● google-generativeai ● python-dotenv Project 1 Google API:- Get API key | Google AI Studio
  • 9. Code:- Project 1 from dotenv import load_dotenv load_dotenv() import streamlit as st import google.generativeai as genai import os genai.configure(api_key=os.getenv("GOOGLE_API")) model = genai.GenerativeModel('gemini-pro') def get_gemini_response(question): response = model.generate_content(question) return response.text def main(): st.title("Gemini chat App") # Get user input user_input = st.text_input("Enter something:",key="input") # Display the user input st.write("You entered:", user_input) submit = st.button("Submit") # Check if the submit button is pressed if submit: # Respond when the button is pressed response = get_gemini_response(user_input) st.subheader("The Response is: ") st.write(response) if __name__ == "__main__": main()