Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,14 +46,14 @@ sys.path.append(repo_dir)
|
|
| 46 |
|
| 47 |
|
| 48 |
# Download specific files (if snapshot_download wasn't used)
|
| 49 |
-
app_path = hf_hub_download(
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
)
|
| 54 |
|
| 55 |
# Load and execute `app.py`
|
| 56 |
-
spec_app = importlib.util.spec_from_file_location("*",
|
| 57 |
app_module = importlib.util.module_from_spec(spec_app)
|
| 58 |
spec_app.loader.exec_module(app_module)
|
| 59 |
# Now you can use functions from utils_module
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
# Download specific files (if snapshot_download wasn't used)
|
| 49 |
+
# app_path = hf_hub_download(
|
| 50 |
+
# repo_id=REPO_ID,
|
| 51 |
+
# filename="app.py",
|
| 52 |
+
# repo_type=REPO_TYPE
|
| 53 |
+
# )
|
| 54 |
|
| 55 |
# Load and execute `app.py`
|
| 56 |
+
spec_app = importlib.util.spec_from_file_location("*", repo_dir)
|
| 57 |
app_module = importlib.util.module_from_spec(spec_app)
|
| 58 |
spec_app.loader.exec_module(app_module)
|
| 59 |
# Now you can use functions from utils_module
|