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("متنی وارد نشده یا اشتباه واردش شده است.")