Spaces:
Sleeping
Sleeping
Fix a typo
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ downloaded_dir = snapshot_download(
|
|
| 18 |
) # downloaded_dir is something like "private_space_cache/bobfu/WordDocxFormatConvertor"
|
| 19 |
|
| 20 |
# 2. Insert the private folder into sys.path so imports resolve correctly
|
| 21 |
-
|
| 22 |
|
| 23 |
# 3. Load the main app script from the private repo
|
| 24 |
app_path = Path(downloaded_dir) / "app.py"
|
|
|
|
| 18 |
) # downloaded_dir is something like "private_space_cache/bobfu/WordDocxFormatConvertor"
|
| 19 |
|
| 20 |
# 2. Insert the private folder into sys.path so imports resolve correctly
|
| 21 |
+
sys.path.insert(0, str(downloaded_dir)) # Allow Python to import convertor from the same directory
|
| 22 |
|
| 23 |
# 3. Load the main app script from the private repo
|
| 24 |
app_path = Path(downloaded_dir) / "app.py"
|