Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,7 +235,7 @@ def analyze_website(api_key: str, url: str, industry: str, goal: str) -> str:
|
|
| 235 |
fetch_status = "✅ Full content analysis" if fetch_success else "⚠️ Limited analysis"
|
| 236 |
|
| 237 |
# Build enhanced prompt
|
| 238 |
-
prompt = f"""You are an AI consultant helping small businesses improve their websites.
|
| 239 |
|
| 240 |
Business Context:
|
| 241 |
- Industry: {industry}
|
|
@@ -321,9 +321,9 @@ with gr.Blocks(
|
|
| 321 |
#output {min-height: 500px}
|
| 322 |
"""
|
| 323 |
) as demo:
|
| 324 |
-
gr.Markdown("# 🔍 AI Website Review Tool")
|
| 325 |
gr.Markdown(
|
| 326 |
-
"Get actionable insights to improve your small business website using AI analysis."
|
| 327 |
)
|
| 328 |
|
| 329 |
with gr.Row():
|
|
@@ -341,14 +341,14 @@ with gr.Blocks(
|
|
| 341 |
info="Enter the homepage or any page you want analyzed",
|
| 342 |
)
|
| 343 |
|
| 344 |
-
gr.Examples(
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
)
|
| 352 |
|
| 353 |
with gr.Row():
|
| 354 |
industry = gr.Dropdown(
|
|
@@ -391,14 +391,5 @@ with gr.Blocks(
|
|
| 391 |
inputs=[api_key, url, industry, goal],
|
| 392 |
outputs=output,
|
| 393 |
)
|
| 394 |
-
|
| 395 |
-
gr.Markdown("""
|
| 396 |
-
---
|
| 397 |
-
### Tips for Best Results:
|
| 398 |
-
- Ensure the website is publicly accessible (not behind a login)
|
| 399 |
-
- Use the homepage URL for overall site analysis
|
| 400 |
-
- Specific landing pages can be analyzed for targeted insights
|
| 401 |
-
- Analysis takes 10-30 seconds depending on website size
|
| 402 |
-
""")
|
| 403 |
|
| 404 |
demo.launch()
|
|
|
|
| 235 |
fetch_status = "✅ Full content analysis" if fetch_success else "⚠️ Limited analysis"
|
| 236 |
|
| 237 |
# Build enhanced prompt
|
| 238 |
+
prompt = f"""You are an AI consultant with the company Esquire IT helping small businesses improve their websites.
|
| 239 |
|
| 240 |
Business Context:
|
| 241 |
- Industry: {industry}
|
|
|
|
| 321 |
#output {min-height: 500px}
|
| 322 |
"""
|
| 323 |
) as demo:
|
| 324 |
+
gr.Markdown("# 🔍 Esquire IT AI Website Review Tool")
|
| 325 |
gr.Markdown(
|
| 326 |
+
"Get actionable insights to improve your small business website using Esquire IT's AI analysis."
|
| 327 |
)
|
| 328 |
|
| 329 |
with gr.Row():
|
|
|
|
| 341 |
info="Enter the homepage or any page you want analyzed",
|
| 342 |
)
|
| 343 |
|
| 344 |
+
# gr.Examples(
|
| 345 |
+
# examples=[
|
| 346 |
+
# ["https://www.stripe.com"],
|
| 347 |
+
# ["https://www.shopify.com"],
|
| 348 |
+
# ],
|
| 349 |
+
# inputs=url,
|
| 350 |
+
# label="Try example websites",
|
| 351 |
+
# )
|
| 352 |
|
| 353 |
with gr.Row():
|
| 354 |
industry = gr.Dropdown(
|
|
|
|
| 391 |
inputs=[api_key, url, industry, goal],
|
| 392 |
outputs=output,
|
| 393 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 394 |
|
| 395 |
demo.launch()
|