Spaces:
Sleeping
Sleeping
Toptopito
commited on
Commit
·
35ae187
1
Parent(s):
dacdeed
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,22 @@ examples = ['./unseen_data/NORMAL/NORMAL2-IM-1427-0001.jpeg',
|
|
16 |
'./unseen_data/NORMAL/NORMAL2-IM-1430-0001.jpeg',
|
17 |
'./unseen_data/PNEUMONIA/person1946_bacteria_4875.jpeg']
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
intf.launch(inline=False, share=True)
|
|
|
16 |
'./unseen_data/NORMAL/NORMAL2-IM-1430-0001.jpeg',
|
17 |
'./unseen_data/PNEUMONIA/person1946_bacteria_4875.jpeg']
|
18 |
|
19 |
+
title = 'Pneumonia X-Ray Classifier'
|
20 |
+
|
21 |
+
description = """An X-Ray classifier trained on the Labeled Optical Coherence Tomography (OCT) and Chest X-Ray Images for Classification dataset with fastai.
|
22 |
+
License: CC BY 4.0
|
23 |
+
Citation: http://www.cell.com/cell/fulltext/S0092-8674(18)30154-5"""
|
24 |
+
|
25 |
+
article="<p style='text-align: center'><a href='https://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia' target='_blank'>Kaggle Dataset</a></p>"
|
26 |
+
|
27 |
+
intf = gr.Interface(fn=classify_image,
|
28 |
+
inputs=gr.Image(type='pil'),
|
29 |
+
outputs=gr.Label(),
|
30 |
+
examples=examples,
|
31 |
+
title = title,
|
32 |
+
description = description,
|
33 |
+
article = article,
|
34 |
+
interpretation='default',
|
35 |
+
enable_queue=True)
|
36 |
|
37 |
intf.launch(inline=False, share=True)
|