Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,8 +47,8 @@ configs = {
|
|
| 47 |
}
|
| 48 |
|
| 49 |
MODEL_REGISTRY = {
|
| 50 |
-
|
| 51 |
-
"CheXFormer-base": "m42-health/CXformer-base",
|
| 52 |
"ViT-base-16": "google/vit-base-patch16-224",
|
| 53 |
}
|
| 54 |
|
|
@@ -299,7 +299,7 @@ example_list = [
|
|
| 299 |
gradio_app = gradio.Interface(
|
| 300 |
fn = partial(run_diagnosis, preprocess_fn = preprocess_fxn, Idx2labels = labels_dict),
|
| 301 |
|
| 302 |
-
inputs = [gradio.Dropdown(["CheXFormer-
|
| 303 |
gradio.Image(type="pil", label="Load chest-X-ray image here"),
|
| 304 |
gradio.Slider(minimum = 0.1, maximum = 0.9, step = 0.05, value = 0.4, label = "Set Prediction Threshold")],
|
| 305 |
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
MODEL_REGISTRY = {
|
| 50 |
+
"CheXFormer-small": "m42-health/CXformer-small",
|
| 51 |
+
# "CheXFormer-base": "m42-health/CXformer-base",
|
| 52 |
"ViT-base-16": "google/vit-base-patch16-224",
|
| 53 |
}
|
| 54 |
|
|
|
|
| 299 |
gradio_app = gradio.Interface(
|
| 300 |
fn = partial(run_diagnosis, preprocess_fn = preprocess_fxn, Idx2labels = labels_dict),
|
| 301 |
|
| 302 |
+
inputs = [gradio.Dropdown(["CheXFormer-small", "ViT-base-16"], value="CheXFormer-small", label="Select Backbone Model"),
|
| 303 |
gradio.Image(type="pil", label="Load chest-X-ray image here"),
|
| 304 |
gradio.Slider(minimum = 0.1, maximum = 0.9, step = 0.05, value = 0.4, label = "Set Prediction Threshold")],
|
| 305 |
|