Spaces:
Build error
Build error
Commit
·
f825554
1
Parent(s):
d444637
Update app.py
Browse files
app.py
CHANGED
@@ -25,21 +25,17 @@ This Space demonstrates model based on efficientnet base model.
|
|
25 |
|
26 |
The model is trained using [anasmohammedtahir/covidqu](https://www.kaggle.com/datasets/anasmohammedtahir/covidqu) dataset
|
27 |
"""
|
|
|
28 |
examples = [
|
29 |
-
['
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
#["Covid Xray Image 5","covid/covid_1027.png"],
|
34 |
-
#["Covid Xray Image 6","covid/covid_1042.png"],
|
35 |
-
#["Covid Xray Image 7","covid/covid_1031.png"]
|
36 |
]
|
37 |
-
|
38 |
interpretation="default"
|
39 |
-
num_shap=5
|
40 |
enable_queue=True
|
41 |
|
42 |
-
|
43 |
gr.Interface(fn=predict_image, inputs=gr.Image(shape=(224,224)),
|
44 |
outputs = gr.Label(num_top_classes=3),title=title,description=description,examples=examples, article=article, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
|
45 |
|
|
|
25 |
|
26 |
The model is trained using [anasmohammedtahir/covidqu](https://www.kaggle.com/datasets/anasmohammedtahir/covidqu) dataset
|
27 |
"""
|
28 |
+
article="<p style='text-align: center'><a href='https://www.kaggle.com/datasets/anasmohammedtahir/covidqu' target='_blank'>COVID-QU-Ex Dataset</a></p>"
|
29 |
examples = [
|
30 |
+
['covid/covid_1038.png'], ['covid/covid_1034.png'],
|
31 |
+
['covid/cd.png'], ['covid/covid_1021.png'],
|
32 |
+
['covid/covid_1027.png'], ['covid/covid_1042.png'],
|
33 |
+
['covid/covid_1031.png']
|
|
|
|
|
|
|
34 |
]
|
35 |
+
|
36 |
interpretation="default"
|
|
|
37 |
enable_queue=True
|
38 |
|
|
|
39 |
gr.Interface(fn=predict_image, inputs=gr.Image(shape=(224,224)),
|
40 |
outputs = gr.Label(num_top_classes=3),title=title,description=description,examples=examples, article=article, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
|
41 |
|