Spaces:
Runtime error
Runtime error
Commit
·
0946317
1
Parent(s):
a9943bc
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ valid_tfms = tfms.A.Adapter(
|
|
47 |
|
48 |
description1 = 'Tool for detecting 15 classes of surgical instruments: Scalpel, Forceps, Suture needle, Clamps (Hemostat, Towel clip, Bulldog), Scissors (Mayo_metz, Iris, Potts), Needle holder (Castroviejo), Retractors (Army-navy, Richardson, Weitlaner), Suctions (Yankauer, Frazier).'
|
49 |
|
50 |
-
description2 = 'Choose one of the examples below or use your own image of an instrument. Click on the Submit button, allow for model prediction and see the bounding box and/or label result.'
|
51 |
|
52 |
examples=[['Image00001.jpg'],['Image00002.jpg'],['Image00003.jpg'],['Image00004.jpg'],['Image00005.jpg']]
|
53 |
|
@@ -75,7 +75,7 @@ outputs = gr.outputs.Image(type="pil")
|
|
75 |
|
76 |
gr_interface = gr.Interface(fn=show_preds_gradio, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider],
|
77 |
outputs=outputs, title='Surgical Instrument Detection and Identification Tool', # , article=article,
|
78 |
-
description = [description1,
|
79 |
examples=examples,
|
80 |
enable_queue=True) ##
|
81 |
|
|
|
47 |
|
48 |
description1 = 'Tool for detecting 15 classes of surgical instruments: Scalpel, Forceps, Suture needle, Clamps (Hemostat, Towel clip, Bulldog), Scissors (Mayo_metz, Iris, Potts), Needle holder (Castroviejo), Retractors (Army-navy, Richardson, Weitlaner), Suctions (Yankauer, Frazier).'
|
49 |
|
50 |
+
description2 = '\n \n Choose one of the examples below or use your own image of an instrument. Click on the Submit button, allow for model prediction and see the bounding box and/or label result.'
|
51 |
|
52 |
examples=[['Image00001.jpg'],['Image00002.jpg'],['Image00003.jpg'],['Image00004.jpg'],['Image00005.jpg']]
|
53 |
|
|
|
75 |
|
76 |
gr_interface = gr.Interface(fn=show_preds_gradio, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider],
|
77 |
outputs=outputs, title='Surgical Instrument Detection and Identification Tool', # , article=article,
|
78 |
+
description = [description1,description2],
|
79 |
examples=examples,
|
80 |
enable_queue=True) ##
|
81 |
|