wintergw commited on
Commit
493aee0
·
verified ·
1 Parent(s): 28ad191

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -69,6 +69,10 @@ repo_dir = snapshot_download(
69
  force_download=True # Forces redownload
70
  )
71
 
 
 
 
 
72
  # Add repo directory to sys.path
73
  sys.path.append(repo_dir)
74
 
 
69
  force_download=True # Forces redownload
70
  )
71
 
72
+ # Step 2: Change the working directory to the downloaded snapshot directory
73
+ # This ensures that all relative paths inside your private space code are correctly resolved.
74
+ os.chdir(repo_dir)
75
+
76
  # Add repo directory to sys.path
77
  sys.path.append(repo_dir)
78