Spaces:
Runtime error
Runtime error
Commit
•
b223943
1
Parent(s):
5308fba
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,17 @@ valid_tfms = tfms.A.Adapter(
|
|
45 |
|
46 |
#examples = ["sample_images/"+file for file in files]
|
47 |
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
def show_preds_gradio(input_image, display_label, display_bbox, detection_threshold):
|
52 |
|
@@ -72,6 +81,7 @@ outputs = gr.outputs.Image(type="pil")
|
|
72 |
|
73 |
gr_interface = gr.Interface(fn=show_preds_gradio, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider],
|
74 |
outputs=outputs, title='Surgical Instrument Detection and Identification Tool', # , article=article,
|
|
|
75 |
examples=examples,
|
76 |
enable_queue=True) ##
|
77 |
|
|
|
45 |
|
46 |
#examples = ["sample_images/"+file for file in files]
|
47 |
|
48 |
+
description = 'Tool for detecting 15 classes of surgical instruments:
|
49 |
+
Scalpel,
|
50 |
+
Forceps,
|
51 |
+
Suture needle,
|
52 |
+
Clamps (Hemostat, Towel clip, Bulldog),
|
53 |
+
Scissors (Mayo_metz, Iris, Potts),
|
54 |
+
Needle holder (Castroviejo),
|
55 |
+
Retractors (Army-navy, Richardson, Weitlaner),
|
56 |
+
Suctions (Yankauer, Frazier).'
|
57 |
+
|
58 |
+
examples=['sample_images/Image00001.jpg','sample_images/Image00002.jpg']
|
59 |
|
60 |
def show_preds_gradio(input_image, display_label, display_bbox, detection_threshold):
|
61 |
|
|
|
81 |
|
82 |
gr_interface = gr.Interface(fn=show_preds_gradio, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider],
|
83 |
outputs=outputs, title='Surgical Instrument Detection and Identification Tool', # , article=article,
|
84 |
+
description = description,
|
85 |
examples=examples,
|
86 |
enable_queue=True) ##
|
87 |
|