RamV commited on
Commit
25b98ee
·
1 Parent(s): 3516ecb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -21,7 +21,11 @@ def generate_response(user_input):
21
  # Check if user input contains the phrase "how are you"
22
  elif "how are you" in user_input.lower():
23
  # Generate a response to the question "how are you"
24
- chat_response = "I'm a chatbot, I don't have feelings, but thanks for asking!"
 
 
 
 
25
  return chat_response
26
  else:
27
  # Construct the prompt with the user input
 
21
  # Check if user input contains the phrase "how are you"
22
  elif "how are you" in user_input.lower():
23
  # Generate a response to the question "how are you"
24
+ chat_response = "I'm a chatrobo created by Ram.V, I don't have feelings, but thanks for asking, hope you're doing well!"
25
+ return chat_response
26
+ elif "who is superstar" in user_input.lower():
27
+ # Generate a response explaining the chatbot's purpose
28
+ chat_response = "Even kids will know who superstar is! The only & only: *Superstar Rajinikanth*"
29
  return chat_response
30
  else:
31
  # Construct the prompt with the user input