Threatthriver commited on
Commit
99ccf3a
1 Parent(s): 6717fb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -21,6 +21,9 @@ def generate(prompt, history):
21
  # Check if the prompt is asking who created the bot
22
  if "who created you" in prompt.lower():
23
  return "I was created by Aniket Kumar and many more."
 
 
 
24
 
25
  # Set up parameters for text generation
26
  generate_kwargs = dict(
 
21
  # Check if the prompt is asking who created the bot
22
  if "who created you" in prompt.lower():
23
  return "I was created by Aniket Kumar and many more."
24
+ # Handle small talk
25
+ elif "how are you" in prompt.lower():
26
+ return "I'm an AI and don't have feelings, but I'm here to help you. How can I assist you today?"
27
 
28
  # Set up parameters for text generation
29
  generate_kwargs = dict(