Update app.py
Browse files
app.py
CHANGED
|
@@ -381,7 +381,10 @@ def parse(history):
|
|
| 381 |
if history==[]:
|
| 382 |
return "No Chat till now"
|
| 383 |
for i in history:
|
| 384 |
-
|
|
|
|
|
|
|
|
|
|
| 385 |
return p
|
| 386 |
def chatbot_response(history,query):
|
| 387 |
l=parse(history)
|
|
|
|
| 381 |
if history==[]:
|
| 382 |
return "No Chat till now"
|
| 383 |
for i in history:
|
| 384 |
+
try:
|
| 385 |
+
p+=i['role']+': '+i['content']+'\n'
|
| 386 |
+
except:
|
| 387 |
+
print(i)
|
| 388 |
return p
|
| 389 |
def chatbot_response(history,query):
|
| 390 |
l=parse(history)
|