mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-23 06:12:50 +08:00
Update cli.py
Former-commit-id: acb61f7ab719202a217d8f42850a9c3797e0c5b1
This commit is contained in:
parent
cf23a279fd
commit
60937ccf32
@ -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