Spaces:
Build error
Build error
Download src/streamlit_app.py from syed63m/SentimentMine: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/syed63m/SentimentMine/resolve/main/src/streamlit_app.py
- Command line
-
hf download hf://spaces/syed63m/SentimentMine/src/streamlit_app.py
-
curl -L -o streamlit_app.py https://huggingface.co/spaces/syed63m/SentimentMine/resolve/main/src/streamlit_app.py
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) |