Spaces:
Sleeping
Sleeping
Bug Fix
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ densenet121, transforms = model.create_densenet_model(num_classes=2)
|
|
| 12 |
|
| 13 |
|
| 14 |
state_dict = torch.load(
|
| 15 |
-
f="
|
| 16 |
map_location="cpu",
|
| 17 |
weights_only=False
|
| 18 |
)
|
|
@@ -39,7 +39,7 @@ def predict(img):
|
|
| 39 |
return pred_labels_and_probs, pred_time
|
| 40 |
|
| 41 |
|
| 42 |
-
example_list = '
|
| 43 |
|
| 44 |
import gradio as gr
|
| 45 |
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
state_dict = torch.load(
|
| 15 |
+
f="dense_90_tiny_lung_classifier_model.pth",
|
| 16 |
map_location="cpu",
|
| 17 |
weights_only=False
|
| 18 |
)
|
|
|
|
| 39 |
return pred_labels_and_probs, pred_time
|
| 40 |
|
| 41 |
|
| 42 |
+
example_list = 'examples' # The path to your directory
|
| 43 |
|
| 44 |
import gradio as gr
|
| 45 |
|