Spaces:
Runtime error
Runtime error
Commit
·
4ec6290
1
Parent(s):
c49c9b0
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def yolov7_inference(
|
|
26 |
Rendered image
|
27 |
"""
|
28 |
|
29 |
-
model = torch.hub.load('kadirnar/yolov7-v0.1', 'custom', path='skin_burn.pt', source='local', device="cpu")
|
30 |
model.conf = conf_threshold
|
31 |
model.iou = iou_threshold
|
32 |
results = model([image], size=image_size)
|
@@ -38,7 +38,7 @@ inputs = [
|
|
38 |
gr.inputs.Dropdown(
|
39 |
choices=[
|
40 |
"skin_burn",
|
41 |
-
"
|
42 |
],
|
43 |
default="skin_burn",
|
44 |
label="Model",
|
|
|
26 |
Rendered image
|
27 |
"""
|
28 |
|
29 |
+
model = torch.hub.load('kadirnar/yolov7-v0.1', 'custom', path='skin_burn.pt', source='local', hf_model=True, device="cpu")
|
30 |
model.conf = conf_threshold
|
31 |
model.iou = iou_threshold
|
32 |
results = model([image], size=image_size)
|
|
|
38 |
gr.inputs.Dropdown(
|
39 |
choices=[
|
40 |
"skin_burn",
|
41 |
+
"Other"
|
42 |
],
|
43 |
default="skin_burn",
|
44 |
label="Model",
|