Spaces:
Sleeping
Sleeping
update of hg space
Browse files- radio_check_app.py +0 -1
radio_check_app.py
CHANGED
|
@@ -52,7 +52,6 @@ def load_all_models_and_assets():
|
|
| 52 |
image_transform = create_chest_xray_transform_for_inference(resize=512, center_crop_size=448)
|
| 53 |
|
| 54 |
# Connect to Hugging Face MLflow instance and pull the Cross-Attention Classifier
|
| 55 |
-
mlflow.set_tracking_uri(os.environ.get("APP_URI"))
|
| 56 |
cross_att_classifier = mlflow.pytorch.load_model(MODEL_URI, map_location=torch.device('cpu'))
|
| 57 |
cross_att_classifier.to(device).eval()
|
| 58 |
|
|
|
|
| 52 |
image_transform = create_chest_xray_transform_for_inference(resize=512, center_crop_size=448)
|
| 53 |
|
| 54 |
# Connect to Hugging Face MLflow instance and pull the Cross-Attention Classifier
|
|
|
|
| 55 |
cross_att_classifier = mlflow.pytorch.load_model(MODEL_URI, map_location=torch.device('cpu'))
|
| 56 |
cross_att_classifier.to(device).eval()
|
| 57 |
|