File size: 438 Bytes
88e9871
 
 
 
 
62935af
 
88e9871
62935af
88e9871
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import streamlit as st

from langchain_google_genai import ChatGoogleGenerativeAI

import time
import os
api = os.environ.getattribute("api_key")
def details():
    apiKey = api
    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)