mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 00:28:10 +08:00
Update cli.py
Former-commit-id: 9db6126496ec9e834541823715f700f92b3968c7
This commit is contained in:
parent
05abe47c8b
commit
8bcdb6f52c
@ -74,7 +74,7 @@ class Command(str, Enum):
|
||||
|
||||
|
||||
def main():
|
||||
command = sys.argv.pop(1) if len(sys.argv) > 0 else Command.HELP
|
||||
command = sys.argv.pop(1) if len(sys.argv) != 1 else Command.HELP
|
||||
if command == Command.API:
|
||||
run_api()
|
||||
elif command == Command.CHAT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user