mohtava_seo / app.py
alikayh's picture
Update app.py
da29026 verified
raw
history blame
970 Bytes
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")
st.info("Developed by Alikay_h --> github.com/kayhgng")
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")
st.title("Your content via seo:")
if content is not None and but:
response = model.generate_content([content, "خودت رو بعنوان یک متخصص سئو تصمور کن و طبق این متنی که بهت داده شده یک مقاله فوق العاده خوب و سئو سازی شده بنویس و کلمات کلیدی مقاله رو بنویس"])
st.markdown(response.text)
else:
st.warning("متنی وارد نشده یا اشتباه واردش شده است.")