We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b77259c + f03de56 commit 97ed7f0Copy full SHA for 97ed7f0
run_babble_cpu.sh
@@ -0,0 +1,25 @@
1
+#!/bin/bash
2
+
3
+# Set virtual environment directory name
4
+VENV_DIR="venv"
5
6
+# Check if the virtual environment directory exists, create it if not
7
+if [ ! -d "$VENV_DIR" ]; then
8
+ echo "Creating virtual environment..."
9
+ python3 -m venv "$VENV_DIR"
10
+fi
11
12
+# Activate the virtual environment
13
+source "$VENV_DIR/bin/activate"
14
15
+# Install or update packages from the requirements.txt file
16
+echo "Installing or updating packages from requirements.txt..."
17
+pip install --upgrade -r requirements.txt
18
19
+# Run BabbleCPU.py
20
+echo "Starting BabbleCPU..."
21
+python BabbleCPU.py
22
23
+# Deactivate the virtual environment
24
+deactivate
25
0 commit comments