Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,8 +19,6 @@ def generate_response(user_input):
|
|
| 19 |
return prompt
|
| 20 |
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
def generate_response(user_input):
|
| 25 |
# Check if user input contains the phrase "who created you"
|
| 26 |
if "who is superstar" in user_input.lower():
|
|
@@ -29,7 +27,7 @@ def generate_response(user_input):
|
|
| 29 |
else:
|
| 30 |
# Construct the prompt with the user input
|
| 31 |
prompt = f"You said: {user_input}"
|
| 32 |
-
|
| 33 |
|
| 34 |
# Generate a response using the OpenAI API
|
| 35 |
response = openai.Completion.create(
|
|
|
|
| 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():
|
|
|
|
| 27 |
else:
|
| 28 |
# Construct the prompt with the user input
|
| 29 |
prompt = f"You said: {user_input}"
|
| 30 |
+
return prompt
|
| 31 |
|
| 32 |
# Generate a response using the OpenAI API
|
| 33 |
response = openai.Completion.create(
|