moazzamdev's picture
Create page3.py
88e9871
raw
history blame
425 Bytes
import streamlit as st
from langchain_google_genai import ChatGoogleGenerativeAI
import time
def details():
apiKey = "AIzaSyAXkkcrrUBjPEgj93tZ9azy7zcS1wI1jUA"
llm = ChatGoogleGenerativeAI(model="gemini-pro", google_api_key=apiKey)
st.header("Introducing Gemini")
with st.chat_message("assistant"):
for chunk in llm.stream("Tell me about google gemini ai model"):
st.write(chunk.content)