Files changed (29) hide show
  1. .gitattributes +0 -1
  2. 1.jpeg +0 -0
  3. 10.png +0 -0
  4. 11.png +0 -0
  5. 12.jpeg +0 -0
  6. 13.jpeg +0 -0
  7. 14.jpeg +0 -0
  8. 15.jpeg +0 -0
  9. 16.jpeg +0 -0
  10. 17.jpeg +0 -0
  11. 18.jpeg +0 -0
  12. 19.jpeg +0 -0
  13. 2.jpeg +0 -0
  14. 20.jpeg +0 -0
  15. 21.jpg +0 -0
  16. 22.jpg +0 -0
  17. 23.jpg +0 -3
  18. 3.jpeg +0 -0
  19. 4.jpeg +0 -0
  20. 5.jpeg +0 -0
  21. 6.png +0 -0
  22. 7.png +0 -0
  23. 8.png +0 -0
  24. 9.png +0 -0
  25. ChestXRay10Epoch.pkl +0 -3
  26. ChestXRayfine.pkl +0 -3
  27. README.md +2 -2
  28. app.py +4 -10
  29. requirements.txt +0 -4
.gitattributes CHANGED
@@ -32,4 +32,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
- 23.jpg filter=lfs diff=lfs merge=lfs -text
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
1.jpeg DELETED
Binary file (385 kB)
 
10.png DELETED
Binary file (77.8 kB)
 
11.png DELETED
Binary file (216 kB)
 
12.jpeg DELETED
Binary file (41.2 kB)
 
13.jpeg DELETED
Binary file (36.1 kB)
 
14.jpeg DELETED
Binary file (68.3 kB)
 
15.jpeg DELETED
Binary file (89.3 kB)
 
16.jpeg DELETED
Binary file (41.2 kB)
 
17.jpeg DELETED
Binary file (36.1 kB)
 
18.jpeg DELETED
Binary file (68.3 kB)
 
19.jpeg DELETED
Binary file (89.3 kB)
 
2.jpeg DELETED
Binary file (173 kB)
 
20.jpeg DELETED
Binary file (123 kB)
 
21.jpg DELETED
Binary file (95.2 kB)
 
22.jpg DELETED
Binary file (432 kB)
 
23.jpg DELETED

Git LFS Details

  • SHA256: 10f381b0867d6e24d8af1827668d558e09bb25b15723112d64152b2924f28092
  • Pointer size: 132 Bytes
  • Size of remote file: 1.28 MB
3.jpeg DELETED
Binary file (133 kB)
 
4.jpeg DELETED
Binary file (260 kB)
 
5.jpeg DELETED
Binary file (179 kB)
 
6.png DELETED
Binary file (79.3 kB)
 
7.png DELETED
Binary file (70.8 kB)
 
8.png DELETED
Binary file (75.6 kB)
 
9.png DELETED
Binary file (85.8 kB)
 
ChestXRay10Epoch.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6859df004aded729aaf30181159885bc790a1db3017c63aca1318f2984880d79
3
- size 87605859
 
 
 
 
ChestXRayfine.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:75b479e8458140da1d14a3032e4717e6c0b966942ec89e3e615a6c0af2fcd21e
3
- size 87585613
 
 
 
 
README.md CHANGED
@@ -4,10 +4,10 @@ emoji: πŸƒ
4
  colorFrom: pink
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 4.36.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
4
  colorFrom: pink
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 3.24.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -3,10 +3,6 @@ import pathlib
3
  plt = platform.system()
4
  pathlib.WindowsPath = pathlib.PosixPath
5
 
6
-
7
- import requests
8
-
9
-
10
  # AUTOGENERATED! DO NOT EDIT! File to edit: app.ipynb.
11
 
12
  # %% auto 0
@@ -21,7 +17,7 @@ from PIL import Image
21
  import gradio as gr
22
 
23
  # %% app.ipynb 2
24
- learn = load_learner('ChestXRayfine.pkl')
25
 
26
  # %% app.ipynb 3
27
  categories=('COVID19','Normal','Pneumonia','Turberculosis')
@@ -32,11 +28,9 @@ def classify_image(img):
32
 
33
 
34
  # %% app.ipynb 4
35
- image=gr.Image()
36
- label=gr.Label()
37
- examples=['1.jpeg','10.png','11.png','12.jpeg','13.jpeg','14.jpeg','15.jpeg','16.jpeg','17.jpeg',
38
- '18.jpeg','19.jpeg','2.jpeg','20.jpeg','21.jpg','22.jpg','23.jpg','3.jpeg','4.jpeg','5.jpeg',
39
- '6.png','7.png','8.png','9.png']
40
 
41
 
42
  interface=gr.Interface(fn=classify_image, inputs=image ,outputs=label,examples=examples)
 
3
  plt = platform.system()
4
  pathlib.WindowsPath = pathlib.PosixPath
5
 
 
 
 
 
6
  # AUTOGENERATED! DO NOT EDIT! File to edit: app.ipynb.
7
 
8
  # %% auto 0
 
17
  import gradio as gr
18
 
19
  # %% app.ipynb 2
20
+ learn = load_learner('tumorClassifier.pkl')
21
 
22
  # %% app.ipynb 3
23
  categories=('COVID19','Normal','Pneumonia','Turberculosis')
 
28
 
29
 
30
  # %% app.ipynb 4
31
+ image=gr.inputs.Image(shape=(512,512))
32
+ label=gr.outputs.Label()
33
+ examples=['1.jpeg', '2.jpg', '3.png','a.jpg','b.jpg','c.jpg','d.jpg','e.jpg','f.jpg']
 
 
34
 
35
 
36
  interface=gr.Interface(fn=classify_image, inputs=image ,outputs=label,examples=examples)
requirements.txt DELETED
@@ -1,4 +0,0 @@
1
- fastai
2
- torch
3
- requests
4
- gradio==3.39.0