vpcom commited on
Commit
8a75814
·
1 Parent(s): ee3e6e6

fix: go back to remove the extra history

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -970,7 +970,7 @@ class ChatInterface(gr.ChatInterface):
970
  request: Request,
971
  *args,
972
  ) -> AsyncGenerator:
973
- history = history_with_input #[:-1]
974
 
975
  print(f'Message is {message}')
976
  if len(message)==0:
@@ -1008,7 +1008,7 @@ class ChatInterface(gr.ChatInterface):
1008
  request: Request,
1009
  *args,
1010
  ) -> tuple[list[list[str | None]], list[list[str | None]]]:
1011
- history = history_with_input #[:-1]
1012
 
1013
  inputs, _, _ = special_args(
1014
  self.fn, inputs=[message, history, *args], request=request
 
970
  request: Request,
971
  *args,
972
  ) -> AsyncGenerator:
973
+ history = history_with_input[:-1]
974
 
975
  print(f'Message is {message}')
976
  if len(message)==0:
 
1008
  request: Request,
1009
  *args,
1010
  ) -> tuple[list[list[str | None]], list[list[str | None]]]:
1011
+ history = history_with_input[:-1]
1012
 
1013
  inputs, _, _ = special_args(
1014
  self.fn, inputs=[message, history, *args], request=request