KingNish commited on
Commit
f5f8202
·
1 Parent(s): 6971f2b

little fix modified: app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = './inference/xcodec_mini_infer'
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 = "./inference/xcodec_mini_infer"
45
  )
46
 
47
  # Change to the "inference" directory
48
- inference_dir = "./inference"
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()}")