hruday96 commited on
Commit
cb069fa
·
verified ·
1 Parent(s): 553e3fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import google.generativeai as genai
3
+
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
+
10
+ # Configure the Google Generative AI API with your 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 promt:', placeholder='E.g., The Future of Artificial Intelligence')