Anthony-Ml commited on
Commit
8d1bd20
1 Parent(s): 075a073

Added 2 more images

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. app.py.bak +1 -1
app.py CHANGED
@@ -12,10 +12,11 @@ def predict_image(get_image):
12
 
13
  title = "Detect COVID_19 Infection Xray Chest Images"
14
  description = "A covid19 infection classifier trained on the anasmohammedtahir/covidqu dataset with efficientnetb0 base model. Created demo using Gradio and HuggingFace Spaces."
15
- examples = ['covid/']
 
16
  article="<p style='text-align: center'><a href='https://www.kaggle.com/datasets/anasmohammedtahir/covidqu' target='_blank'>COVID-QU-Ex Dataset</a></p>"
17
  interpretation='default'
18
  enable_queue=True
19
 
20
  gr.Interface(fn=predict_image, inputs=gr.Image(shape=(224,224)),
21
- outputs = gr.Label(num_top_classes=3),title=title,description=description,examples=examples,article=article, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
 
12
 
13
  title = "Detect COVID_19 Infection Xray Chest Images"
14
  description = "A covid19 infection classifier trained on the anasmohammedtahir/covidqu dataset with efficientnetb0 base model. Created demo using Gradio and HuggingFace Spaces."
15
+ examples = [
16
+ ['covid/covid_1038.png', 'covid/covid_1034.png', 'covid/cd.png', 'covid/covid_1021.png', 'covid/covid_1027.png', 'covid/covid_1042.png', 'covid/covid_1031.png']]
17
  article="<p style='text-align: center'><a href='https://www.kaggle.com/datasets/anasmohammedtahir/covidqu' target='_blank'>COVID-QU-Ex Dataset</a></p>"
18
  interpretation='default'
19
  enable_queue=True
20
 
21
  gr.Interface(fn=predict_image, inputs=gr.Image(shape=(224,224)),
22
+ outputs = gr.Label(num_top_classes=3),title=title,description=description,Gallery=examples,article=article, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
app.py.bak CHANGED
@@ -12,7 +12,7 @@ def predict_image(get_image):
12
 
13
  title = "Detect COVID_19 Infection Xray Chest Images"
14
  description = "A covid19 infection classifier trained on the anasmohammedtahir/covidqu dataset with efficientnetb0 base model. Created demo using Gradio and HuggingFace Spaces."
15
- examples = ['/covid']
16
  article="<p style='text-align: center'><a href='https://www.kaggle.com/datasets/anasmohammedtahir/covidqu' target='_blank'>COVID-QU-Ex Dataset</a></p>"
17
  interpretation='default'
18
  enable_queue=True
 
12
 
13
  title = "Detect COVID_19 Infection Xray Chest Images"
14
  description = "A covid19 infection classifier trained on the anasmohammedtahir/covidqu dataset with efficientnetb0 base model. Created demo using Gradio and HuggingFace Spaces."
15
+ examples = ['covid/']
16
  article="<p style='text-align: center'><a href='https://www.kaggle.com/datasets/anasmohammedtahir/covidqu' target='_blank'>COVID-QU-Ex Dataset</a></p>"
17
  interpretation='default'
18
  enable_queue=True