Spaces:
Runtime error
Runtime error
fix: go back to remove the extra history
Browse files
app.py
CHANGED
@@ -970,7 +970,7 @@ class ChatInterface(gr.ChatInterface):
|
|
970 |
request: Request,
|
971 |
*args,
|
972 |
) -> AsyncGenerator:
|
973 |
-
history = history_with_input
|
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
|
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
|