Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,16 @@ def generate_response(user_input):
|
|
| 11 |
# Check if user input contains the phrase "who created you"
|
| 12 |
if "who created you" in user_input.lower():
|
| 13 |
# Generate a response that includes your name
|
| 14 |
-
chat_response = "I was created by
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
else:
|
| 16 |
# Construct the prompt with the user input
|
| 17 |
prompt = f"You said: {user_input}"
|
|
|
|
| 11 |
# Check if user input contains the phrase "who created you"
|
| 12 |
if "who created you" in user_input.lower():
|
| 13 |
# Generate a response that includes your name
|
| 14 |
+
chat_response = "I was created by Ram.V"
|
| 15 |
+
else:
|
| 16 |
+
# Construct the prompt with the user input
|
| 17 |
+
prompt = f"You said: {user_input}"
|
| 18 |
+
|
| 19 |
+
def generate_response(user_input):
|
| 20 |
+
# Check if user input contains the phrase "who created you"
|
| 21 |
+
if "who is superstar" in user_input.lower():
|
| 22 |
+
# Generate a response that includes your name
|
| 23 |
+
chat_response = "Even kids will know who superstar is! The one and only * Superstar Rajinikanth *"
|
| 24 |
else:
|
| 25 |
# Construct the prompt with the user input
|
| 26 |
prompt = f"You said: {user_input}"
|