Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,14 @@ import os
|
|
4 |
import shutil
|
5 |
import tempfile
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
from huggingface_hub import snapshot_download
|
8 |
|
9 |
# Create xcodec_mini_infer folder
|
|
|
4 |
import shutil
|
5 |
import tempfile
|
6 |
|
7 |
+
# Set the PATH and LD_LIBRARY_PATH for CUDA 12.3
|
8 |
+
cuda_bin_path = "/usr/local/cuda-12.3/bin"
|
9 |
+
cuda_lib_path = "/usr/local/cuda-12.3/lib64"
|
10 |
+
|
11 |
+
# Update the environment variables
|
12 |
+
os.environ['PATH'] = f"{cuda_bin_path}:{os.environ.get('PATH', '')}"
|
13 |
+
os.environ['LD_LIBRARY_PATH'] = f"{cuda_lib_path}:{os.environ.get('LD_LIBRARY_PATH', '')}"
|
14 |
+
|
15 |
from huggingface_hub import snapshot_download
|
16 |
|
17 |
# Create xcodec_mini_infer folder
|