kshdes37 commited on
Commit
e8919fa
·
verified ·
1 Parent(s): a1b3ad0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -6,9 +6,11 @@ from huggingface_hub import hf_hub_download
6
  # -------------------------------
7
  # Step 1: Add CADFusion repo to sys.path
8
  # -------------------------------
9
- CADFUSION_DIR = Path("CADFusion") # make sure this folder exists in your Space
10
- sys.path.append(str(CADFUSION_DIR))
 
11
 
 
12
  from cadfusion.inference import InferenceRunner
13
  from cadfusion.utils.config import load_config
14
 
 
6
  # -------------------------------
7
  # Step 1: Add CADFusion repo to sys.path
8
  # -------------------------------
9
+ # CADFusion folder must contain the 'cadfusion/' subfolder
10
+ CADFUSION_DIR = Path("CADFusion")
11
+ sys.path.append(str(CADFUSION_DIR.resolve()))
12
 
13
+ # Now Python can find the 'cadfusion' module
14
  from cadfusion.inference import InferenceRunner
15
  from cadfusion.utils.config import load_config
16