fix #1489
This commit is contained in:
parent
2d42be32c1
commit
3743b7420b
|
@ -1,6 +1,12 @@
|
||||||
import readline
|
|
||||||
from llmtuner import ChatModel
|
from llmtuner import ChatModel
|
||||||
|
|
||||||
|
try:
|
||||||
|
import platform
|
||||||
|
if platform.system() != "Windows":
|
||||||
|
import readline
|
||||||
|
except ImportError:
|
||||||
|
print("Install `readline` for a better experience.")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
chat_model = ChatModel()
|
chat_model = ChatModel()
|
||||||
|
|
Loading…
Reference in New Issue