mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-29 10:59:32 +01:00
Fix the download script
This commit is contained in:
parent
5345685ead
commit
dd1bed2d8b
@ -27,9 +27,11 @@ def get_file(args):
|
|||||||
f.write(data)
|
f.write(data)
|
||||||
t.close()
|
t.close()
|
||||||
|
|
||||||
model = Path(argv[1])
|
model = argv[1]
|
||||||
|
if model[-1] == '/':
|
||||||
|
model = model[:-1]
|
||||||
url = f'https://huggingface.co/{model}/tree/main'
|
url = f'https://huggingface.co/{model}/tree/main'
|
||||||
output_folder = Path("models") / model.name
|
output_folder = Path("models") / model.split('/')[-1]
|
||||||
if not output_folder.exists():
|
if not output_folder.exists():
|
||||||
output_folder.mkdir()
|
output_folder.mkdir()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user