Omnibus commited on
Commit
9fad852
1 Parent(s): 3af3c66

Update app.py

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