RoAr777 commited on
Commit
855dce1
·
verified ·
1 Parent(s): bc542c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- p+=i['role']+': '+i['content']+'\n'
 
 
 
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)