little fix modified: app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ install_flash_attn()
|
|
30 |
from huggingface_hub import snapshot_download
|
31 |
|
32 |
# Create xcodec_mini_infer folder
|
33 |
-
folder_path = './
|
34 |
|
35 |
# Create the folder if it doesn't exist
|
36 |
if not os.path.exists(folder_path):
|
@@ -41,11 +41,11 @@ else:
|
|
41 |
|
42 |
snapshot_download(
|
43 |
repo_id = "m-a-p/xcodec_mini_infer",
|
44 |
-
local_dir = "./
|
45 |
)
|
46 |
|
47 |
# Change to the "inference" directory
|
48 |
-
inference_dir = "
|
49 |
try:
|
50 |
os.chdir(inference_dir)
|
51 |
print(f"Changed working directory to: {os.getcwd()}")
|
|
|
30 |
from huggingface_hub import snapshot_download
|
31 |
|
32 |
# Create xcodec_mini_infer folder
|
33 |
+
folder_path = './xcodec_mini_infer'
|
34 |
|
35 |
# Create the folder if it doesn't exist
|
36 |
if not os.path.exists(folder_path):
|
|
|
41 |
|
42 |
snapshot_download(
|
43 |
repo_id = "m-a-p/xcodec_mini_infer",
|
44 |
+
local_dir = "./xcodec_mini_infer"
|
45 |
)
|
46 |
|
47 |
# Change to the "inference" directory
|
48 |
+
inference_dir = "."
|
49 |
try:
|
50 |
os.chdir(inference_dir)
|
51 |
print(f"Changed working directory to: {os.getcwd()}")
|