fix #1507
This commit is contained in:
parent
829e879e04
commit
2f02f688e1
|
@ -1,4 +1,5 @@
|
|||
from llmtuner import ChatModel
|
||||
from llmtuner.extras.misc import torch_gc
|
||||
|
||||
try:
|
||||
import platform
|
||||
|
@ -27,6 +28,7 @@ def main():
|
|||
|
||||
if query.strip() == "clear":
|
||||
history = []
|
||||
torch_gc()
|
||||
print("History has been removed.")
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue