Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from agent import run_analysis
|
| 3 |
+
|
| 4 |
+
# Gradio Interface
|
| 5 |
+
with gr.Blocks(theme="soft") as demo:
|
| 6 |
+
gr.Markdown("## 🧠 MarketMind AI: Your Market Intelligence Co-Pilot")
|
| 7 |
+
gr.Markdown("Turn Google search data into actionable business insights")
|
| 8 |
+
|
| 9 |
+
with gr.Row():
|
| 10 |
+
analysis_type = gr.Dropdown(
|
| 11 |
+
choices=["Competitor Analysis", "Keyword Research", "Trend Discovery", "Idea Validation"],
|
| 12 |
+
label="Analysis Type"
|
| 13 |
+
)
|
| 14 |
+
query_input = gr.Textbox(label="Enter Query (e.g., competitor URL, industry, business idea)")
|
| 15 |
+
|
| 16 |
+
submit_btn = gr.Button("🔍 Analyze")
|
| 17 |
+
output = gr.Markdown(label="Insights")
|
| 18 |
+
|
| 19 |
+
submit_btn.click(
|
| 20 |
+
fn=run_analysis,
|
| 21 |
+
inputs=[analysis_type, query_input],
|
| 22 |
+
outputs=output
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
if __name__ == "__main__":
|
| 26 |
+
demo.launch()
|