forked from p04798526/LLaMA-Factory-Mirror
Update cli.py
This commit is contained in:
parent
7d70ba7fb8
commit
acb61f7ab7
|
@ -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…
Reference in New Issue