Aiswarya Sankar commited on
Commit
e6048bc
·
1 Parent(s): a1d349c

update file

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -424,7 +424,7 @@ def solveGithubIssue(ticket, history) -> Response:
424
  flat_list = [item for item in flat_list if item is not None]
425
 
426
  print(flat_list)
427
- for char in qa({"question": question, "chat_history": history})["answer"]:
428
  history[-1][1] += char
429
  yield history
430
 
@@ -470,13 +470,9 @@ def bot(history, **kwargs):
470
  print("Exception: " + str(e))
471
  return str(e)
472
 
473
- print(history)
474
  history[-1][1] = ""
475
- flat_list = [item for sublist in history for item in sublist]
476
- flat_list = [item for item in flat_list if item is not None]
477
- print(flat_list)
478
 
479
- for char in qa({"question": user_message, "chat_history": history})["answer"]:
480
  history[-1][1] += char
481
  yield history
482
 
 
424
  flat_list = [item for item in flat_list if item is not None]
425
 
426
  print(flat_list)
427
+ for char in qa({"question": question, "chat_history": []})["answer"]:
428
  history[-1][1] += char
429
  yield history
430
 
 
470
  print("Exception: " + str(e))
471
  return str(e)
472
 
 
473
  history[-1][1] = ""
 
 
 
474
 
475
+ for char in qa({"question": user_message, "chat_history": []})["answer"]:
476
  history[-1][1] += char
477
  yield history
478