wintergw commited on
Commit
cb0a79d
·
verified ·
1 Parent(s): 6acbb02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -23
app.py CHANGED
@@ -69,29 +69,6 @@ repo_dir = snapshot_download(
69
  force_download=True # Forces redownload
70
  )
71
 
72
-
73
- # Step 2: Change the working directory to the downloaded snapshot directory
74
- # This ensures that all relative paths inside your private space code are correctly resolved.
75
- os.chdir(repo_dir)
76
-
77
- # Verify the parent directory to check the files
78
- print("The parent directory is:", os.listdir(repo_dir))
79
-
80
- # Step 3: Correctly access the fine-tuned model directory in the snapshot
81
- fine_tuned_model_path = "./fine_tuned_llama3" # Use the relative path as in your private space
82
- adapter_config_path = os.path.join(fine_tuned_model_path, "adapter_config.json")
83
-
84
- print("Downloaded Model Path:", fine_tuned_model_path)
85
- print("Files in Model Directory:", os.listdir(fine_tuned_model_path))
86
-
87
- # Step 4: Verify the existence of required files
88
- if not os.path.exists(adapter_config_path):
89
- raise FileNotFoundError(f"adapter_config.json not found in {fine_tuned_model_path}. Check if the model was downloaded correctly.")
90
-
91
-
92
-
93
-
94
-
95
  # Add repo directory to sys.path
96
  sys.path.append(repo_dir)
97
 
 
69
  force_download=True # Forces redownload
70
  )
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  # Add repo directory to sys.path
73
  sys.path.append(repo_dir)
74