UKURIKIYEYEZU commited on
Commit
c5883d7
·
verified ·
1 Parent(s): a47eb2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -197,8 +197,8 @@ def clean_body_content(html_content):
197
 
198
  if __name__ == "__main__":
199
  website = [
200
- "https://www.rib.gov.rw/index.php?id=371",
201
- #"https://haguruka.org.rw/our-work/"
202
  ]
203
  all_content = scrape_websites(website)
204
 
@@ -366,15 +366,18 @@ class UserSession:
366
 
367
  def set_welcome_message(self, first_name):
368
  self.welcome_message = (
369
- f"<div style='font-size: 18px; font-weight: bold; color: #2E86C1;'>"
370
  f"Welcome {first_name}! 👋</div>"
371
- f"<div style='font-size: 14px; color: #34495E;'>"
372
  f"We appreciate you reaching out to us. You are in a safe and trusted space designed to support you. "
373
- f"Here, you can find guidance on gender-based violence (GBV) and legal assistance.<br><br>"
374
- f"You don’t have to go through this alone—we are here to listen, support, and help you find the right solutions. "
375
- f"You deserve to be heard and helped, and we are committed to standing by your side."
376
  f"</div>"
377
  )
 
 
 
 
 
378
 
379
  def get_welcome_message(self):
380
  return self.welcome_message
@@ -414,7 +417,7 @@ def collect_user_info(first_name, last_name, phone):
414
  # Add initial message to start the conversation
415
  def add_initial_message(chatbot):
416
  initial_message = (
417
- "<div style='font-size: 14px; font-weight: normal; color: #16A085;'>"
418
  f"I just want to check in and see how you are doing."
419
  f"If you are going through something, please know you are not alone, I am here for you, no matter what.🤗"
420
  "</div>"
 
197
 
198
  if __name__ == "__main__":
199
  website = [
200
+ #"https://www.rib.gov.rw/index.php?id=371",
201
+ "https://haguruka.org.rw/our-work/"
202
  ]
203
  all_content = scrape_websites(website)
204
 
 
366
 
367
  def set_welcome_message(self, first_name):
368
  self.welcome_message = (
369
+ f"<div style='font-size: 20px; font-weight: bold; color: #2E86C1;'>"
370
  f"Welcome {first_name}! 👋</div>"
371
+ f"<div style='font-size: 18px; color: #34495E;'>"
372
  f"We appreciate you reaching out to us. You are in a safe and trusted space designed to support you. "
373
+ f"Here, you can find guidance on gender-based violence (GBV) and legal assistance.<br><br>"
 
 
374
  f"</div>"
375
  )
376
+
377
+
378
+ # f"You don’t have to go through this alone—we are here to listen, support, and help you find the right solutions. "
379
+ # f"You deserve to be heard and helped, and we are committed to standing by your side."
380
+ #f"</div>"
381
 
382
  def get_welcome_message(self):
383
  return self.welcome_message
 
417
  # Add initial message to start the conversation
418
  def add_initial_message(chatbot):
419
  initial_message = (
420
+ "<div style='font-size: 16px; font-weight: normal; color: #16A085;'>"
421
  f"I just want to check in and see how you are doing."
422
  f"If you are going through something, please know you are not alone, I am here for you, no matter what.🤗"
423
  "</div>"