Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def generate_response(user_input):
|
|
| 16 |
else:
|
| 17 |
# Construct the prompt with the user input
|
| 18 |
prompt = f"You said: {user_input}"
|
| 19 |
-
|
| 20 |
|
| 21 |
|
| 22 |
def generate_response(user_input):
|
|
@@ -27,6 +27,7 @@ def generate_response(user_input):
|
|
| 27 |
else:
|
| 28 |
# Construct the prompt with the user input
|
| 29 |
prompt = f"You said: {user_input}"
|
|
|
|
| 30 |
|
| 31 |
# Generate a response using the OpenAI API
|
| 32 |
response = openai.Completion.create(
|
|
|
|
| 16 |
else:
|
| 17 |
# Construct the prompt with the user input
|
| 18 |
prompt = f"You said: {user_input}"
|
| 19 |
+
|
| 20 |
|
| 21 |
|
| 22 |
def generate_response(user_input):
|
|
|
|
| 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(
|