Spaces:
Build error

File size: 338 Bytes
8784af7
c0c0424
8784af7
c0c0424
 
 
 
8784af7
c0c0424
 
1
2
3
4
5
6
7
8
9
10
import streamlit as st
from langchain_google_genai import ChatGoogleGenerativeAI

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

if query:
  st.write(query.content)