Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ model = YOLO('best.pt')
|
|
15 |
def predict (image):
|
16 |
##To display an error message if you submit without an image
|
17 |
if image is None:
|
18 |
-
raise gr.
|
19 |
results = model(image, conf =0.2)
|
20 |
## list of all the probabilities
|
21 |
conf = []
|
@@ -72,7 +72,7 @@ platform = gr.Interface( fn = predict,
|
|
72 |
Users are encouraged to interpret the algorithm's output in conjunction with their clinical judgment,
|
73 |
and the tool should be viewed as a supplementary resource rather than a standalone diagnostic solution.
|
74 |
""",
|
75 |
-
|
76 |
|
77 |
|
78 |
platform.launch(inline=True,share=True)
|
|
|
15 |
def predict (image):
|
16 |
##To display an error message if you submit without an image
|
17 |
if image is None:
|
18 |
+
raise gr.Error("Please upload a chest X-ray image to proceed")
|
19 |
results = model(image, conf =0.2)
|
20 |
## list of all the probabilities
|
21 |
conf = []
|
|
|
72 |
Users are encouraged to interpret the algorithm's output in conjunction with their clinical judgment,
|
73 |
and the tool should be viewed as a supplementary resource rather than a standalone diagnostic solution.
|
74 |
""",
|
75 |
+
favicon_path = "thumbnail.jpg")
|
76 |
|
77 |
|
78 |
platform.launch(inline=True,share=True)
|