Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1570,6 +1570,7 @@ def generate_discovery_questions(client, pdf_filename, product_category):
|
|
| 1570 |
"How long do you need backup power in case of an outage?",
|
| 1571 |
"Do you require automatic voltage regulation (AVR) for power fluctuations?",
|
| 1572 |
"Do you prefer a compact and easy-to-maintain UPS with user-replaceable batteries?"
|
|
|
|
| 1573 |
]
|
| 1574 |
|
| 1575 |
# For other categories, call OpenAI API to generate questions (unchanged)
|
|
@@ -1736,7 +1737,8 @@ def generate_product_recommendation(client, questions, answers, pdf_filename, pr
|
|
| 1736 |
"Yes, I need power protection for my office workstation, server room, or point-of-sale system.",
|
| 1737 |
"I need a few minutes of backup to safely shut down my equipment or continue working briefly.",
|
| 1738 |
"Yes, I need a UPS that can regulate voltage fluctuations to prevent damage to my devices.",
|
| 1739 |
-
"Yes, I need a small UPS that is easy to replace batteries in and doesn't take much space."
|
|
|
|
| 1740 |
]
|
| 1741 |
|
| 1742 |
# Check if answers generally match what we expect (using partial matching)
|
|
|
|
| 1570 |
"How long do you need backup power in case of an outage?",
|
| 1571 |
"Do you require automatic voltage regulation (AVR) for power fluctuations?",
|
| 1572 |
"Do you prefer a compact and easy-to-maintain UPS with user-replaceable batteries?"
|
| 1573 |
+
"What is your budget range for a UPS system?"
|
| 1574 |
]
|
| 1575 |
|
| 1576 |
# For other categories, call OpenAI API to generate questions (unchanged)
|
|
|
|
| 1737 |
"Yes, I need power protection for my office workstation, server room, or point-of-sale system.",
|
| 1738 |
"I need a few minutes of backup to safely shut down my equipment or continue working briefly.",
|
| 1739 |
"Yes, I need a UPS that can regulate voltage fluctuations to prevent damage to my devices.",
|
| 1740 |
+
"Yes, I need a small UPS that is easy to replace batteries in and doesn't take much space.",
|
| 1741 |
+
"I am looking for a cost-effective UPS solution that fits within my budget while providing reliable power backup."
|
| 1742 |
]
|
| 1743 |
|
| 1744 |
# Check if answers generally match what we expect (using partial matching)
|