Anthony-Ml commited on
Commit
2e04135
1 Parent(s): d564473

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -17,7 +17,13 @@ This Space demonstrates model based on efficientnet base model.
17
 
18
  The model is trained using [anasmohammedtahir/covidqu] (https://www.kaggle.com/datasets/anasmohammedtahir/covidqu)dataset
19
  """
20
- examples = [
 
 
 
 
 
 
21
  ['covid/covid_1038.png'], ['covid/covid_1034.png'],
22
  ['covid/cd.png'], ['covid/covid_1021.png'],
23
  ['covid/covid_1027.png'], ['covid/covid_1042.png'],
@@ -27,10 +33,7 @@ article="<p style='text-align: center'><a href='https://www.kaggle.com/datasets/
27
  interpretation='default'
28
  enable_queue=True
29
 
30
- with gr.Row():
31
- covid = ['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']
32
- gr.Gallery(value=covid, columns=2).style(height="200px", grid=2)
33
 
34
  gr.Interface(fn=predict_image, inputs=gr.Image(shape=(224,224)),
35
- outputs = gr.Label(num_top_classes=3),title=title,description=description,examples=examples,article=article, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
36
 
 
17
 
18
  The model is trained using [anasmohammedtahir/covidqu] (https://www.kaggle.com/datasets/anasmohammedtahir/covidqu)dataset
19
  """
20
+ covid = [
21
+ ['covid/covid_1038.png'], ['covid/covid_1034.png'],
22
+ ['covid/cd.png'], ['covid/covid_1021.png'],
23
+ ['covid/covid_1027.png'], ['covid/covid_1042.png'],
24
+ ['covid/covid_1031.png']
25
+ ]
26
+ normal = [
27
  ['covid/covid_1038.png'], ['covid/covid_1034.png'],
28
  ['covid/cd.png'], ['covid/covid_1021.png'],
29
  ['covid/covid_1027.png'], ['covid/covid_1042.png'],
 
33
  interpretation='default'
34
  enable_queue=True
35
 
 
 
 
36
 
37
  gr.Interface(fn=predict_image, inputs=gr.Image(shape=(224,224)),
38
+ outputs = gr.Label(num_top_classes=3),title=title,description=description,examples=covid,examples=normal,article=article, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
39