smtsead commited on
Commit
6ec1507
·
verified ·
1 Parent(s): 574604f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -1,7 +1,6 @@
1
  """
2
- Hotel Review Analysis System for The Kimberley Hotel Hong Kong
3
  ISOM5240 Group Project
4
-
5
  Automatically analyzes guest reviews in multiple languages, performs sentiment
6
  analysis and aspect detection, then generates professional responses.
7
  """
@@ -202,8 +201,7 @@ def generate_response(sentiment, aspects, original_text):
202
 
203
  if sentiment['label'] == 1:
204
  response = f"""Dear{guest_name if guest_name else ' Valued Guest'},
205
-
206
- Thank you for choosing The Kimberley Hotel Hong Kong and for sharing your kind feedback with us."""
207
 
208
  # Add relevant aspect responses
209
  added_aspects = set()
@@ -220,7 +218,6 @@ Thank you for choosing The Kimberley Hotel Hong Kong and for sharing your kind f
220
  response += "\n\nWe look forward to welcoming you back for another memorable stay."
221
  else:
222
  response = f"""Dear{guest_name if guest_name else ' Guest'},
223
-
224
  Thank you for taking the time to share your feedback with us. We sincerely regret that your experience did not meet your expectations."""
225
 
226
  # Add improvement actions
@@ -242,19 +239,18 @@ Thank you for taking the time to share your feedback with us. We sincerely regre
242
  response += """
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
250
- +852 1234 5678 | guest.relations@kimberleyhotel.com.hk"""
251
 
252
  return response
253
 
254
  # ===== STREAMLIT UI =====
255
  def main():
256
  st.set_page_config(
257
- page_title="Kimberley Review Assistant",
258
  page_icon="🏨",
259
  layout="centered"
260
  )
@@ -271,7 +267,7 @@ def main():
271
  </style>
272
  """, unsafe_allow_html=True)
273
 
274
- st.markdown('<div class="header">The Kimberley Hotel Hong Kong</div>', unsafe_allow_html=True)
275
  st.markdown('<div class="subheader">Guest Review Analysis System</div>', unsafe_allow_html=True)
276
 
277
  review = st.text_area("**Paste Guest Review:**",
 
1
  """
2
+ Hotel Review Analysis System for The Mira Hong Kong
3
  ISOM5240 Group Project
 
4
  Automatically analyzes guest reviews in multiple languages, performs sentiment
5
  analysis and aspect detection, then generates professional responses.
6
  """
 
201
 
202
  if sentiment['label'] == 1:
203
  response = f"""Dear{guest_name if guest_name else ' Valued Guest'},
204
+ Thank you for choosing The Mira Hong Kong and for sharing your kind feedback with us."""
 
205
 
206
  # Add relevant aspect responses
207
  added_aspects = set()
 
218
  response += "\n\nWe look forward to welcoming you back for another memorable stay."
219
  else:
220
  response = f"""Dear{guest_name if guest_name else ' Guest'},
 
221
  Thank you for taking the time to share your feedback with us. We sincerely regret that your experience did not meet your expectations."""
222
 
223
  # Add improvement actions
 
239
  response += """
240
 
241
  Should you require any further assistance, please don't hesitate to contact our Guest Relations team.
 
242
  Sincerely yours,
243
  Sam Tse
244
  Guest Relations Manager
245
+ The Mira Hong Kong
246
+ +852 1234 5678 | guest.relations@mirahotel.com.hk"""
247
 
248
  return response
249
 
250
  # ===== STREAMLIT UI =====
251
  def main():
252
  st.set_page_config(
253
+ page_title="Mira Review Assistant",
254
  page_icon="🏨",
255
  layout="centered"
256
  )
 
267
  </style>
268
  """, unsafe_allow_html=True)
269
 
270
+ st.markdown('<div class="header">The Mira Hong Kong</div>', unsafe_allow_html=True)
271
  st.markdown('<div class="subheader">Guest Review Analysis System</div>', unsafe_allow_html=True)
272
 
273
  review = st.text_area("**Paste Guest Review:**",