Skip to content

Commit

Permalink
(fix)(demos): modified the shell script to download the binaries befo…
Browse files Browse the repository at this point in the history
…re running the demo notebooks
  • Loading branch information
YushaArif99 committed Jun 25, 2024
1 parent a8bf755 commit d92f9c6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 1 addition & 3 deletions examples_and_demos/alexnet_demo_cpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n",
"\n",
"exit()"
"!cd models/ && pip install .\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n",
"\n",
"exit()"
"!cd models/ && pip install .\n"
]
},
{
Expand Down
4 changes: 1 addition & 3 deletions examples_and_demos/resnet_demo_cpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n",
"\n",
"!python3 -m pip install torchvision\n",
"\n",
"exit()"
"!python3 -m pip install torchvision\n"
]
},
{
Expand Down
9 changes: 8 additions & 1 deletion tests/test_demos.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ $2 == true ]; then
export VERSION=nightly
export VERSION=main
fi

cd ivy
Expand All @@ -13,6 +13,13 @@ mkdir .ivy
# install dependencies
pip install -r requirements.txt >/dev/null 2>&1

# get the binaries
python3 << 'EOF'
import ivy
ivy.utils.cleanup_and_fetch_binaries(clean=True)
EOF


# run test
if [ $3 == true ]; then
echo "PATH : $1"
Expand Down

0 comments on commit d92f9c6

Please sign in to comment.