Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,16 @@ import google.generativeai as genai
|
|
| 4 |
# Streamlit app layout
|
| 5 |
st.title('PromptLab')
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Retrieve the API key from Streamlit secrets
|
| 8 |
GOOGLE_API_KEY = st.secrets["GEMINI_API_KEY"]
|
| 9 |
|
|
@@ -11,4 +21,4 @@ GOOGLE_API_KEY = st.secrets["GEMINI_API_KEY"]
|
|
| 11 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 12 |
|
| 13 |
# Input field for the blog topic
|
| 14 |
-
topic = st.text_area('Enter your prompt:
|
|
|
|
| 4 |
# Streamlit app layout
|
| 5 |
st.title('PromptLab')
|
| 6 |
|
| 7 |
+
# Create two columns for the Shinobi and Raikage buttons
|
| 8 |
+
col1, col2 = st.columns(2)
|
| 9 |
+
|
| 10 |
+
# Style the buttons to look like rounded slots
|
| 11 |
+
with col1:
|
| 12 |
+
shinobi_selected = st.button("🌀 Shinobi")
|
| 13 |
+
|
| 14 |
+
with col2:
|
| 15 |
+
raikage_selected = st.button("⚡ Raikage")
|
| 16 |
+
|
| 17 |
# Retrieve the API key from Streamlit secrets
|
| 18 |
GOOGLE_API_KEY = st.secrets["GEMINI_API_KEY"]
|
| 19 |
|
|
|
|
| 21 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 22 |
|
| 23 |
# Input field for the blog topic
|
| 24 |
+
topic = st.text_area('Enter your prompt:')
|