Update app.py
Browse files
app.py
CHANGED
|
@@ -52,23 +52,22 @@ llm = HuggingFaceHub(
|
|
| 52 |
|
| 53 |
# Prompt template
|
| 54 |
template = """
|
| 55 |
-
You are a professional market analyst.
|
| 56 |
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
|
| 60 |
-
- **SWOT analysis** for each
|
| 61 |
-
- **Business insights, use cases, and recommendations**
|
| 62 |
-
- **Key differentiators and which suits which users**
|
| 63 |
-
|
| 64 |
-
Only output the analysis in a clean, professional tone with markdown formatting.
|
| 65 |
|
| 66 |
---
|
| 67 |
|
| 68 |
-
|
| 69 |
{product1}
|
| 70 |
|
| 71 |
-
|
| 72 |
{product2}
|
| 73 |
"""
|
| 74 |
|
|
|
|
| 52 |
|
| 53 |
# Prompt template
|
| 54 |
template = """
|
| 55 |
+
You are a professional market analyst trained to evaluate two competing products or services.
|
| 56 |
|
| 57 |
+
Your task is to generate an analysis in markdown format including:
|
| 58 |
+
- Feature-by-feature comparison
|
| 59 |
+
- SWOT analysis for each
|
| 60 |
+
- Business insights, use cases, and recommendations
|
| 61 |
+
- Key differentiators and user fit
|
| 62 |
|
| 63 |
+
Do not mention these instructions or your role. Only return the analysis.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
---
|
| 66 |
|
| 67 |
+
Product 1:
|
| 68 |
{product1}
|
| 69 |
|
| 70 |
+
Product 2:
|
| 71 |
{product2}
|
| 72 |
"""
|
| 73 |
|