Anthony-Ml commited on
Commit
71ab2c2
1 Parent(s): 2b5c78c

deleted 3 bak files

Browse files
Files changed (3) hide show
  1. .gitignore.bak +0 -1
  2. app.py.bak +0 -21
  3. style.css +0 -41
.gitignore.bak DELETED
@@ -1 +0,0 @@
1
- /predictcovidfastaifinal18102023.pkl
 
 
app.py.bak DELETED
@@ -1,21 +0,0 @@
1
- import gradio as gr
2
- from fastai.vision.all import *
3
- from efficientnet_pytorch import EfficientNet
4
-
5
- learn = load_learner('/model/predictcovidfastaifinal18102023.pkl')
6
-
7
- categories = learn.dls.vocab
8
-
9
- def predict_image(get_image):
10
- pred, idx, probs = learn.predict(get_image)
11
- return dict(zip(categories, map(float, probs)))
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/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']
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)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
style.css DELETED
@@ -1,41 +0,0 @@
1
- html,
2
- body {
3
- font-family: Arial, Helvetica, sans-serif;
4
- }
5
-
6
- .container {
7
- margin: 40px auto;
8
- width: max(50vw, 400px);
9
- display: flex;
10
- flex-direction: column;
11
- align-items: center;
12
- }
13
-
14
- .custom-file-upload {
15
- display: flex;
16
- align-items: center;
17
- cursor: pointer;
18
- gap: 10px;
19
- border: 2px solid black;
20
- padding: 8px 16px;
21
- cursor: pointer;
22
- border-radius: 6px;
23
- }
24
-
25
- #file-upload {
26
- display: none;
27
- }
28
-
29
- .upload-icon {
30
- width: 30px;
31
- }
32
-
33
- #image-container {
34
- width: 100%;
35
- margin-top: 20px;
36
- position: relative;
37
- }
38
-
39
- #image-container>img {
40
- width: 100%;
41
- }