mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 12:42:51 +08:00
parent
5c4ddebde5
commit
9176b55fe6
@ -1,6 +1,12 @@
|
||||
import readline
|
||||
from llmtuner import ChatModel
|
||||
|
||||
try:
|
||||
import platform
|
||||
if platform.system() != "Windows":
|
||||
import readline
|
||||
except ImportError:
|
||||
print("Install `readline` for a better experience.")
|
||||
|
||||
|
||||
def main():
|
||||
chat_model = ChatModel()
|
||||
|
Loading…
x
Reference in New Issue
Block a user