DevangMahesh commited on
Commit
7ee3fed
·
1 Parent(s): 62353c0

Added goodbye to the text

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -83,7 +83,7 @@ def backgnd_process_message(message):
83
 
84
  if (ONGOING_CONVO.get(sender_id, None) == None):
85
  #Send the button to start story
86
- welcome_prompt = "Hi there!! I am hope, your english teaching bot :); Give me a story or news article and we can chat around it."
87
  ONGOING_CONVO[sender_id] = {'Story': False, 'Llama_conv' : None}
88
  send_whatsapp_message(sender_id, welcome_prompt)
89
  else:
@@ -92,7 +92,9 @@ def backgnd_process_message(message):
92
 
93
  if(message_text == "END"):
94
  ONGOING_CONVO[sender_id] = None
95
- response_text = process_text_message(message_text)
 
 
96
  elif message_type == "audio":
97
  media_id = message["audio"]["id"]
98
  audio_url = fetch_media_url(media_id)
 
83
 
84
  if (ONGOING_CONVO.get(sender_id, None) == None):
85
  #Send the button to start story
86
+ welcome_prompt = "Hi there!! I am hope, your english teaching bot :);\n Give me a story or news article and we can chat around it."
87
  ONGOING_CONVO[sender_id] = {'Story': False, 'Llama_conv' : None}
88
  send_whatsapp_message(sender_id, welcome_prompt)
89
  else:
 
92
 
93
  if(message_text == "END"):
94
  ONGOING_CONVO[sender_id] = None
95
+ response_text = "I hope you a wonderful learning session!! Keep up the good work and best of luck"
96
+ else:
97
+ response_text = process_text_message(message_text)
98
  elif message_type == "audio":
99
  media_id = message["audio"]["id"]
100
  audio_url = fetch_media_url(media_id)