delphiclinic commited on
Commit
e828ccd
·
verified ·
1 Parent(s): 36bb7ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.err("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,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
- thumbnail = "pneumothorax/thumbnail.jpg")
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)