Spaces:
Configuration error
Configuration error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from geo_engine import get_optimizations
|
| 3 |
+
|
| 4 |
+
def generate_geo_output(keyword):
|
| 5 |
+
results = get_optimizations(keyword)
|
| 6 |
+
return results["blog_titles"], results["json_ld"], results["rewritten_prompt"]
|
| 7 |
+
|
| 8 |
+
iface = gr.Interface(
|
| 9 |
+
fn=generate_geo_output,
|
| 10 |
+
inputs=gr.Textbox(label="Enter Your Name/Brand/Keyword"),
|
| 11 |
+
outputs=[
|
| 12 |
+
gr.Textbox(label="Catchy Blog Titles"),
|
| 13 |
+
gr.Textbox(label="JSON-LD Schema"),
|
| 14 |
+
gr.Textbox(label="AI-SEO Optimized Prompt")
|
| 15 |
+
],
|
| 16 |
+
title="GEO Agent - Generative Engine Optimization Tool",
|
| 17 |
+
description="Boost your LLM visibility with expert-tuned content scoring and optimization."
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
if __name__ == "__main__":
|
| 21 |
+
iface.launch()
|