Spaces:
Running
Running
Sadjad Alikhani
commited on
Update app.py
Browse files
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 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
-
|
103 |
-
|
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
|