Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def chat(text):
|
|
34 |
# Use OpenAI's GPT-3.5 model to generate chatbot response
|
35 |
response = openai.Completion.create(
|
36 |
model=MODEL,
|
37 |
-
prompt=
|
38 |
temperature=0.5,
|
39 |
max_tokens=1024,
|
40 |
n=1,
|
|
|
34 |
# Use OpenAI's GPT-3.5 model to generate chatbot response
|
35 |
response = openai.Completion.create(
|
36 |
model=MODEL,
|
37 |
+
prompt = r"Conversation with user:\n" + "\n".join(chat_history) + r"\nChatbot:"
|
38 |
temperature=0.5,
|
39 |
max_tokens=1024,
|
40 |
n=1,
|