mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-06 02:42:15 +08:00
parent
a834f566d8
commit
3cb0fb4e11
@ -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