Spaces:
Running
Running
File size: 848 Bytes
cb069fa 35f1887 8259245 f443f44 cb069fa 35f1887 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
import streamlit as st
import google.generativeai as genai
# Streamlit app layout
st.title('PromptLab')
# Create two columns for the Shinobi and Raikage buttons
col1, col2 = st.columns(2)
# Style the buttons to look like rounded slots
with col1:
shinobi_selected = st.button("🌀 Shinobi")
with col2:
raikage_selected = st.button("⚡ Raikage")
mode = st.radio("Choose a mode:", ["Shinobi", "Raikage"])
st.write(f"You selected: {mode}")
tab1, tab2 = st.tabs(["Shinobi", "Raikage"])
with tab1:
st.write("Shinobi Mode")
with tab2:
st.write("Raikage Mode")
# 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:')
|