Spaces:
Sleeping
Sleeping
Julian-Hans
commited on
Commit
•
4da033f
1
Parent(s):
36aa059
simplified setup
Browse files
setup.sh
CHANGED
@@ -29,28 +29,14 @@ echo "Virtual environment $VENV_DIR activated."
|
|
29 |
|
30 |
pip install --upgrade pip
|
31 |
|
32 |
-
if [ -d "Case-Study-1" ]; then
|
33 |
-
echo "Repository folder 'Case-Study-1' already exists. Checking for updates."
|
34 |
-
cd Case-Study-1
|
35 |
-
if git pull | grep -q 'Already up to date.'; then
|
36 |
-
echo "Repository is up to date. Proceeding with setup."
|
37 |
-
cd Case-Study-1
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
cd Case-Study-1
|
43 |
-
fi
|
44 |
else
|
45 |
-
echo "
|
46 |
-
if git clone https://github.com/oxmraz-mldo24/Case-Study-1.git; then
|
47 |
-
echo "Repository cloned successfully. Proceeding to next step."
|
48 |
-
cd Case-Study-1
|
49 |
-
else
|
50 |
-
echo "Failed to clone repository. Exiting."
|
51 |
-
exit 1
|
52 |
-
fi
|
53 |
fi
|
|
|
54 |
echo "Checking if http://127.0.0.1:7860 is running..."
|
55 |
if curl -s --head http://127.0.0.1:7860 | grep "200 OK" > /dev/null; then
|
56 |
echo "URL is running.No further action required. Exiting."
|
|
|
29 |
|
30 |
pip install --upgrade pip
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
+
if git pull | grep -q 'Already up to date.'; then
|
34 |
+
echo "Repository is up to date. Proceeding with setup."
|
35 |
+
|
|
|
|
|
36 |
else
|
37 |
+
echo "Repository updated successfully. Proceeding to next step."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
fi
|
39 |
+
|
40 |
echo "Checking if http://127.0.0.1:7860 is running..."
|
41 |
if curl -s --head http://127.0.0.1:7860 | grep "200 OK" > /dev/null; then
|
42 |
echo "URL is running.No further action required. Exiting."
|