Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,11 +12,13 @@ def generate_response(user_input):
|
|
| 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 |
return prompt
|
| 19 |
|
|
|
|
| 20 |
def generate_response(user_input):
|
| 21 |
# Check if user input contains the phrase "who created you"
|
| 22 |
if "who is superstar" in user_input.lower():
|
|
|
|
| 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 |
+
return chat_response
|
| 16 |
else:
|
| 17 |
# Construct the prompt with the user input
|
| 18 |
prompt = f"You said: {user_input}"
|
| 19 |
return prompt
|
| 20 |
|
| 21 |
+
|
| 22 |
def generate_response(user_input):
|
| 23 |
# Check if user input contains the phrase "who created you"
|
| 24 |
if "who is superstar" in user_input.lower():
|