Spaces:
Sleeping
Sleeping
File size: 1,204 Bytes
2e347d7 afb05d3 2c2459a bbb68c0 e13e319 dbaa4ba e13e319 2e347d7 8a18440 2e347d7 da29026 e13e319 8a18440 dbaa4ba e13e319 dbaa4ba e13e319 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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("متنی وارد نشده یا اشتباه واردش شده است.") |