Minor Colab fix

This commit is contained in:
oobabooga 2023-11-15 08:18:32 -08:00
parent 3d861a459d
commit 072cfe19e9

View File

@ -106,7 +106,7 @@
" url_parts = model_url.strip('/').strip().split('/')\n",
" output_folder = f\"{url_parts[-2]}_{url_parts[-1]}\"\n",
" branch = branch.strip('\"\\' ')\n",
" if branch.strip() != not in ['', 'main']:\n",
" if branch.strip() not in ['', 'main']:\n",
" output_folder += f\"_{branch}\"\n",
" !python download-model.py {model_url} --branch {branch}\n",
" else:\n",