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