pkl
#2
by
MohammedAlakhras
- opened
- .gitattributes +0 -1
- 1.jpeg +0 -0
- 10.png +0 -0
- 11.png +0 -0
- 12.jpeg +0 -0
- 13.jpeg +0 -0
- 14.jpeg +0 -0
- 15.jpeg +0 -0
- 16.jpeg +0 -0
- 17.jpeg +0 -0
- 18.jpeg +0 -0
- 19.jpeg +0 -0
- 2.jpeg +0 -0
- 20.jpeg +0 -0
- 21.jpg +0 -0
- 22.jpg +0 -0
- 23.jpg +0 -3
- 3.jpeg +0 -0
- 4.jpeg +0 -0
- 5.jpeg +0 -0
- 6.png +0 -0
- 7.png +0 -0
- 8.png +0 -0
- 9.png +0 -0
- ChestXRay10Epoch.pkl +0 -3
- ChestXRayfine.pkl +0 -3
- README.md +2 -2
- app.py +4 -10
- 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
|
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:
|
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('
|
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','
|
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
|
|
|
|
|
|
|
|
|
|