prompt-lab / app.py
hruday96's picture
Update app.py
edabf5c verified
raw
history blame
434 Bytes
import streamlit as st
import google.generativeai as genai
# Streamlit app layout
st.title('PromptLab')
# Retrieve the API key from Streamlit secrets
GOOGLE_API_KEY = st.secrets["GEMINI_API_KEY"]
# Configure the Google Generative AI API with your API key
genai.configure(api_key=GOOGLE_API_KEY)
# Input field for the blog topic
topic = st.text_area('Enter your prompt: ') #placeholder='E.g., The Future of Artificial Intelligence'