Omnibus commited on
Commit
3af3c66
·
verified ·
1 Parent(s): 62c5fbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def chat_inf(system_prompt,prompt,history):
41
  for response in stream:
42
  output += response.token.text
43
  if history:
44
- history[hist_len+1]=[(prompt,output)]
45
  hist=history
46
  #hist=[history,(prompt,output)]
47
  else:
 
41
  for response in stream:
42
  output += response.token.text
43
  if history:
44
+ history[-1]=[(prompt,output)]
45
  hist=history
46
  #hist=[history,(prompt,output)]
47
  else: