Spaces:
Paused
Paused
Change install order
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
# For licensing see accompanying LICENSE file.
|
| 2 |
# Copyright (C) 2024 Apple Inc. All rights reserved.
|
| 3 |
import spaces
|
| 4 |
-
import logging
|
| 5 |
import os
|
|
|
|
|
|
|
|
|
|
| 6 |
import shlex
|
| 7 |
import time
|
| 8 |
from dataclasses import dataclass
|
|
@@ -24,8 +26,6 @@ from ml_mdm import helpers, reader
|
|
| 24 |
from ml_mdm.config import get_arguments, get_model, get_pipeline
|
| 25 |
from ml_mdm.language_models import factory
|
| 26 |
|
| 27 |
-
os.system("pip install --upgrade ./ml_mdm-1.0-py3-none-any.whl")
|
| 28 |
-
|
| 29 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 30 |
|
| 31 |
# Download destination
|
|
|
|
| 1 |
# For licensing see accompanying LICENSE file.
|
| 2 |
# Copyright (C) 2024 Apple Inc. All rights reserved.
|
| 3 |
import spaces
|
|
|
|
| 4 |
import os
|
| 5 |
+
os.system("pip install --upgrade ./ml_mdm-1.0-py3-none-any.whl")
|
| 6 |
+
|
| 7 |
+
import logging
|
| 8 |
import shlex
|
| 9 |
import time
|
| 10 |
from dataclasses import dataclass
|
|
|
|
| 26 |
from ml_mdm.config import get_arguments, get_model, get_pipeline
|
| 27 |
from ml_mdm.language_models import factory
|
| 28 |
|
|
|
|
|
|
|
| 29 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 30 |
|
| 31 |
# Download destination
|