Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|