Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,42 +67,42 @@ aspect_map = {
|
|
67 |
}
|
68 |
|
69 |
aspect_responses = {
|
70 |
-
"location": "We're delighted you enjoyed our prime location
|
71 |
-
"view": "It's wonderful to hear you appreciated the
|
72 |
-
"room comfort": "Our team is thrilled you found your room comfortable and
|
73 |
-
"room cleanliness": "Your commendation of our cleanliness standards means a
|
74 |
-
"staff service": "Your kind words about our team, especially {staff_name}, have been shared with them.",
|
75 |
-
"reception": "We're pleased our front desk team made your arrival
|
76 |
-
"spa": "Our spa practitioners will be delighted you enjoyed their treatments.",
|
77 |
-
"pool": "We're glad you had a refreshing time at our pool
|
78 |
-
"dining": "Thank you for appreciating our culinary offerings - we've shared your
|
79 |
-
"concierge": "We're happy our concierge could enhance your stay with local
|
80 |
-
"fitness": "It's great to hear you made use of our
|
81 |
-
"room service": "We're pleased our in-room dining met your expectations for quality and
|
82 |
-
"parking": "We're glad our parking
|
83 |
-
"bathroom": "We appreciate your feedback about our bathroom amenities and cleanliness.",
|
84 |
-
"bar": "Thank you for your comments about our bar service and
|
85 |
-
"housekeeping": "Your feedback about our housekeeping service has been shared with the team.",
|
86 |
-
"Wi-Fi": "We're pleased our internet service met your connectivity needs.",
|
87 |
-
"elevator": "We're glad our elevator service provided convenient access during your stay."
|
88 |
}
|
89 |
|
90 |
improvement_actions = {
|
91 |
-
"AC": "completed a
|
92 |
-
"housekeeping": "
|
93 |
-
"bathroom": "
|
94 |
-
"parking": "implemented
|
95 |
-
"dining": "reviewed our menu pricing and quality with the culinary team",
|
96 |
-
"reception": "provided additional customer service training to our front desk",
|
97 |
-
"elevator": "
|
98 |
-
"room amenities": "begun upgrading in-room amenities based on guest feedback",
|
99 |
-
"noise": "initiated soundproofing improvements in
|
100 |
-
"pricing": "
|
101 |
-
"Wi-Fi": "
|
102 |
-
"bar": "
|
103 |
-
"staff service": "
|
104 |
-
"room service": "
|
105 |
-
"fitness": "
|
106 |
}
|
107 |
|
108 |
# ===== MODEL CONFIGURATION =====
|
@@ -243,7 +243,7 @@ Thank you for taking the time to share your feedback with us. We sincerely regre
|
|
243 |
|
244 |
Should you require any further assistance, please don't hesitate to contact our Guest Relations team.
|
245 |
|
246 |
-
Sincerely,
|
247 |
Sam Tse
|
248 |
Guest Relations Manager
|
249 |
The Kimberley Hotel Hong Kong
|
@@ -267,6 +267,7 @@ def main():
|
|
267 |
.char-counter.warning { color: #ff6b6b; }
|
268 |
.result-box { border-left: 4px solid #003366; padding: 15px; background-color: #f9f9f9; margin: 20px 0; }
|
269 |
.aspect-badge { background-color: #e6f2ff; padding: 2px 8px; border-radius: 4px; display: inline-block; margin: 2px; }
|
|
|
270 |
</style>
|
271 |
""", unsafe_allow_html=True)
|
272 |
|
@@ -348,7 +349,8 @@ def main():
|
|
348 |
|
349 |
st.divider()
|
350 |
st.markdown("### Draft Response")
|
351 |
-
st.markdown(f'<div class="result-box">{final_response}</div>',
|
|
|
352 |
|
353 |
except Exception as e:
|
354 |
st.error(f"An error occurred: {str(e)}")
|
|
|
67 |
}
|
68 |
|
69 |
aspect_responses = {
|
70 |
+
"location": "We're delighted you enjoyed our prime location in the heart of Tsim Sha Tsui with convenient access to major attractions.",
|
71 |
+
"view": "It's wonderful to hear you appreciated the stunning views of Victoria Harbour from your room.",
|
72 |
+
"room comfort": "Our team is thrilled you found your room comfortable and well-appointed for your needs.",
|
73 |
+
"room cleanliness": "Your commendation of our cleanliness standards means a great deal to our housekeeping team who work diligently to maintain our high standards.",
|
74 |
+
"staff service": "Your kind words about our team, especially {staff_name}, have been shared with them and are greatly appreciated.",
|
75 |
+
"reception": "We're pleased our front desk team made your arrival and departure experience seamless and welcoming.",
|
76 |
+
"spa": "Our spa practitioners will be delighted you enjoyed their treatments and the relaxing ambiance of our wellness center.",
|
77 |
+
"pool": "We're glad you had a refreshing time at our rooftop pool with its panoramic city views.",
|
78 |
+
"dining": "Thank you for appreciating our culinary offerings - we've shared your compliments with our executive chef and culinary team.",
|
79 |
+
"concierge": "We're happy our concierge could enhance your stay with their local knowledge and personalized recommendations.",
|
80 |
+
"fitness": "It's great to hear you made use of our 24-hour fitness center with its modern equipment.",
|
81 |
+
"room service": "We're pleased our in-room dining met your expectations for both quality and timely service.",
|
82 |
+
"parking": "We're glad our valet parking service provided convenience during your stay with us.",
|
83 |
+
"bathroom": "We appreciate your feedback about our bathroom amenities and the cleanliness of your facilities.",
|
84 |
+
"bar": "Thank you for your comments about our bar service and the selection of beverages available in our lounge.",
|
85 |
+
"housekeeping": "Your positive feedback about our housekeeping service has been shared with the entire team.",
|
86 |
+
"Wi-Fi": "We're pleased our high-speed internet service met your connectivity needs throughout the property.",
|
87 |
+
"elevator": "We're glad our elevator service provided convenient access to all areas of the hotel during your stay."
|
88 |
}
|
89 |
|
90 |
improvement_actions = {
|
91 |
+
"AC": "completed a comprehensive inspection and maintenance of all air conditioning units",
|
92 |
+
"housekeeping": "conducted additional training for our housekeeping team and adjusted cleaning schedules",
|
93 |
+
"bathroom": "performed deep cleaning and maintenance on all bathroom facilities",
|
94 |
+
"parking": "implemented enhanced key management protocols with our valet service team",
|
95 |
+
"dining": "reviewed our menu pricing and quality standards with the culinary leadership team",
|
96 |
+
"reception": "provided additional customer service training to our front desk associates",
|
97 |
+
"elevator": "completed full servicing and testing of all elevator systems",
|
98 |
+
"room amenities": "begun upgrading in-room amenities based on recent guest feedback",
|
99 |
+
"noise": "initiated soundproofing improvements in identified high-traffic areas",
|
100 |
+
"pricing": "commenced a comprehensive review of our pricing structure and value proposition",
|
101 |
+
"Wi-Fi": "begun upgrading our network infrastructure to enhance connectivity",
|
102 |
+
"bar": "reviewed our beverage service procedures and inventory management",
|
103 |
+
"staff service": "implemented additional staff training programs focusing on guest interactions",
|
104 |
+
"room service": "optimized our food delivery processes to improve efficiency",
|
105 |
+
"fitness": "scheduled upgrades to our gym equipment based on guest preferences"
|
106 |
}
|
107 |
|
108 |
# ===== MODEL CONFIGURATION =====
|
|
|
243 |
|
244 |
Should you require any further assistance, please don't hesitate to contact our Guest Relations team.
|
245 |
|
246 |
+
Sincerely yours,
|
247 |
Sam Tse
|
248 |
Guest Relations Manager
|
249 |
The Kimberley Hotel Hong Kong
|
|
|
267 |
.char-counter.warning { color: #ff6b6b; }
|
268 |
.result-box { border-left: 4px solid #003366; padding: 15px; background-color: #f9f9f9; margin: 20px 0; }
|
269 |
.aspect-badge { background-color: #e6f2ff; padding: 2px 8px; border-radius: 4px; display: inline-block; margin: 2px; }
|
270 |
+
.response-box { white-space: pre-wrap; font-family: monospace; }
|
271 |
</style>
|
272 |
""", unsafe_allow_html=True)
|
273 |
|
|
|
349 |
|
350 |
st.divider()
|
351 |
st.markdown("### Draft Response")
|
352 |
+
st.markdown(f'<div class="result-box"><div class="response-box">{final_response}</div></div>',
|
353 |
+
unsafe_allow_html=True)
|
354 |
|
355 |
except Exception as e:
|
356 |
st.error(f"An error occurred: {str(e)}")
|