Spaces:
Sleeping
Sleeping
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 and but: | |
response = model.generate_content([content, "خودت رو بعنوان یک متخصص سئو تصمور کن و طبق این متنی که بهت داده شده یک مقاله فوق العاده خوب و سئو سازی شده بنویس و کلمات کلیدی مقاله رو بنویس"]) | |
st.markdown(response.text) | |
st.title("Your content with JSON format") | |
json_response = model.generate_content([response.text, "مقاله ای که نوشتی رو بیا به صورت ساختارمند JSON بنویس"]) | |
st.markdown(json_response.text) | |
else: | |
st.warning("متنی وارد نشده یا اشتباه واردش شده است.") |