Spaces:
Running
Running
Commit
·
88e9871
1
Parent(s):
5e31be1
Create page3.py
Browse files
page3.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
from langchain_google_genai import ChatGoogleGenerativeAI
|
4 |
+
|
5 |
+
import time
|
6 |
+
def details():
|
7 |
+
apiKey = "AIzaSyAXkkcrrUBjPEgj93tZ9azy7zcS1wI1jUA"
|
8 |
+
llm = ChatGoogleGenerativeAI(model="gemini-pro", google_api_key=apiKey)
|
9 |
+
st.header("Introducing Gemini")
|
10 |
+
with st.chat_message("assistant"):
|
11 |
+
for chunk in llm.stream("Tell me about google gemini ai model"):
|
12 |
+
st.write(chunk.content)
|