Skip to content

Commit

Permalink
Add an exception if cloning TripoSR repository is failed (#2397)
Browse files Browse the repository at this point in the history
CVS-152581
  • Loading branch information
aleksandr-mokrov authored Sep 17, 2024
1 parent d37453e commit 3889abd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,15 @@
}
],
"source": [
"import os\n",
"import sys\n",
"from pathlib import Path\n",
"\n",
"if not Path(\"TripoSR\").exists():\n",
" !git clone https://huggingface.co/spaces/stabilityai/TripoSR\n",
" exit_code = os.system(\"git clone https://huggingface.co/spaces/stabilityai/TripoSR\")\n",
"\n",
" if exit_code != 0:\n",
" raise Exception(\"Failed to clone the repository!\")\n",
"\n",
"sys.path.append(\"TripoSR\")"
]
Expand Down

0 comments on commit 3889abd

Please sign in to comment.