mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 13:58:56 +01:00
Update download-model.py
This commit is contained in:
parent
fffd49e64e
commit
18ef72d7c0
@ -11,7 +11,6 @@ from bs4 import BeautifulSoup
|
|||||||
import multiprocessing
|
import multiprocessing
|
||||||
import tqdm
|
import tqdm
|
||||||
import sys
|
import sys
|
||||||
from sys import argv
|
|
||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import re
|
import re
|
||||||
@ -43,7 +42,7 @@ def sanitize_branch_name(branch_name):
|
|||||||
raise ValueError("Invalid branch name. Only alphanumeric characters, period, underscore and dash are allowed.")
|
raise ValueError("Invalid branch name. Only alphanumeric characters, period, underscore and dash are allowed.")
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
model = argv[1]
|
model = args.model
|
||||||
if model[-1] == '/':
|
if model[-1] == '/':
|
||||||
model = model[:-1]
|
model = model[:-1]
|
||||||
branch = args.branch
|
branch = args.branch
|
||||||
|
Loading…
Reference in New Issue
Block a user