Spaces:
Runtime error
Runtime error
Create activate_env.sh
Browse files- activate_env.sh +19 -0
activate_env.sh
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Load the Python module, if needed (this might be specific to your cluster setup and might not be needed in Docker)
|
4 |
+
# module load python/3.9.9
|
5 |
+
|
6 |
+
# Activate the Python virtual environment
|
7 |
+
source /workspace/env/bin/activate
|
8 |
+
|
9 |
+
# Set custom Python path
|
10 |
+
export PYTHON="/workspace/env/bin/python"
|
11 |
+
|
12 |
+
# Set path to eSpeak data
|
13 |
+
export ESPEAK_DATA_PATH="/workspace/espeak-ng/espeak-ng-data"
|
14 |
+
|
15 |
+
# Add eSpeak library to library path
|
16 |
+
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/workspace/espeak-ng/lib"
|
17 |
+
|
18 |
+
# Add eSpeak binaries to PATH
|
19 |
+
export PATH="/workspace/espeak-ng/bin:$PATH"
|