Sadjad Alikhani commited on
Commit
2da85bd
·
verified ·
1 Parent(s): 8aef216

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -95,12 +95,12 @@ def process_p_file(uploaded_file, percentage_idx, complexity_idx):
95
  print(f"Directory {model_repo_dir} does not exist.")
96
  return
97
 
98
- ## Step 2: Add the cloned repo to sys.path for imports
99
- #if model_repo_dir not in sys.path:
100
- # sys.path.append(model_repo_dir)
101
 
102
- ## Debugging: Print sys.path to ensure the cloned repo is in the path
103
- #print(f"sys.path: {sys.path}")
104
  #sys.path.append('./')
105
 
106
  from lwm_model import LWM
 
95
  print(f"Directory {model_repo_dir} does not exist.")
96
  return
97
 
98
+ # Step 2: Add the cloned repo to sys.path for imports
99
+ if model_repo_dir not in sys.path:
100
+ sys.path.append(model_repo_dir)
101
 
102
+ # Debugging: Print sys.path to ensure the cloned repo is in the path
103
+ print(f"sys.path: {sys.path}")
104
  #sys.path.append('./')
105
 
106
  from lwm_model import LWM