Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,8 @@ chatbot1 = Chatbot(config={
|
|
20 |
})
|
21 |
|
22 |
def openai_create(prompt):
|
23 |
-
response = ""
|
24 |
for data in chatbot1.ask(prompt):
|
25 |
-
response
|
26 |
return response
|
27 |
|
28 |
|
|
|
20 |
})
|
21 |
|
22 |
def openai_create(prompt):
|
|
|
23 |
for data in chatbot1.ask(prompt):
|
24 |
+
response = data["message"]
|
25 |
return response
|
26 |
|
27 |
|