Spaces:
Sleeping
Sleeping
Adrit Rao
commited on
Commit
·
4ae0554
1
Parent(s):
1aa59a8
Add application file v2
Browse files- app.py +1 -3
- install.sh +12 -0
app.py
CHANGED
|
@@ -7,9 +7,7 @@ import subprocess
|
|
| 7 |
|
| 8 |
# Define the list of commands, including "echo" to simulate Enter keypress
|
| 9 |
commands = [
|
| 10 |
-
"
|
| 11 |
-
"cd Comp2Comp",
|
| 12 |
-
"pip install -e ."
|
| 13 |
]
|
| 14 |
|
| 15 |
for command in commands:
|
|
|
|
| 7 |
|
| 8 |
# Define the list of commands, including "echo" to simulate Enter keypress
|
| 9 |
commands = [
|
| 10 |
+
"chmod +x install.sh"
|
|
|
|
|
|
|
| 11 |
]
|
| 12 |
|
| 13 |
for command in commands:
|
install.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Step 1: Install Miniconda
|
| 4 |
+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
|
| 5 |
+
bash miniconda.sh -b -p /root/miniconda # Specify the installation path as needed
|
| 6 |
+
|
| 7 |
+
# Step 2: Initialize Miniconda
|
| 8 |
+
source /root/miniconda/etc/profile.d/conda.sh
|
| 9 |
+
conda init
|
| 10 |
+
|
| 11 |
+
# Step 3: Change to the desired directory and execute the installation script
|
| 12 |
+
cd Comp2Comp-main && bin/install.sh
|