File size: 322 Bytes
d5e71dc
b5417c5
 
d5e71dc
b5417c5
 
 
 
d5e71dc
b5417c5
4e7d3f5
1
2
3
4
5
6
7
8
9
10
11
12

import streamlit as st
from langchain_google_genai import ChatGoogleGenerativeAI

st.title("Google ChatBot")
llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash-latest", api_key="AIzaSyDA1zZ006f4krgUDjhdju_RcwZNwNPOJwI")
prompt = st.text_input("prompt: ")
query = llm.invoke(prompt)

if query:
  st.write(query.content)