File size: 740 Bytes
2e347d7
afb05d3
2c2459a
bbb68c0
dbaa4ba
 
2e347d7
 
 
 
dbaa4ba
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import streamlit as st 
import subprocess
subprocess.run("pip install -q -U google-generativeai", shell=True)
import google.generativeai as genai
API = "AIzaSyBOOuFWwlywK77pLGg82li1m1mkNgeyQz4"
genai.configure(api_key=API)
st.title("Content With Seo Generator")
content = st.text_input("Please Enter Your prompt to make content via seo")
model = genai.GenerativeModel("gemini-2.0-flash-exp")
but = st.button("Lets Go")
if content is not None and but:
    response = model.generate_content([content, "برای این متنی که داده شده یک محتوا یا مقاله سئو سازی شده بنویس"])
    st.markdown(response.text)
else:
    st.warning("متنی وارد نشده یا اشتباه واردش شده است.")