Spaces:
Build error

SentimentMine / src /streamlit_app.py
syed63m's picture
Update src/streamlit_app.py
c0c0424 verified
Raw History Blame Contribute Delete
338 Bytes
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)