Spaces:
Sleeping
Sleeping
Upload 7 files
Browse files- .gitattributes +1 -0
- Dockerfile +1 -1
- requirements.txt +4 -2
- src/__pycache__/prediction.cpython-39.pyc +0 -0
- src/best_model_sore.keras +3 -0
- src/prediction.py +1 -3
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
src/best_model_sore.keras filter=lfs diff=lfs merge=lfs -text
|
Dockerfile
CHANGED
@@ -18,4 +18,4 @@ EXPOSE 8501
|
|
18 |
|
19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
20 |
|
21 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
18 |
|
19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
20 |
|
21 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
requirements.txt
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-
streamlit
|
2 |
pandas
|
3 |
-
tensorflow
|
4 |
numpy
|
|
|
|
|
|
1 |
+
streamlit==1.43.0
|
2 |
pandas
|
3 |
+
tensorflow<2.16
|
4 |
numpy
|
5 |
+
tf-keras<2.16
|
6 |
+
pillow
|
src/__pycache__/prediction.cpython-39.pyc
ADDED
Binary file (1.14 kB). View file
|
|
src/best_model_sore.keras
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff2daf06f5e4c74e1f0b904fe4af30bc18f51896d5164477e9d49767415374aa
|
3 |
+
size 144054700
|
src/prediction.py
CHANGED
@@ -3,15 +3,13 @@ import pandas as pd
|
|
3 |
import os
|
4 |
import sys
|
5 |
from io import BytesIO, StringIO
|
6 |
-
import pickle
|
7 |
-
import json
|
8 |
import tensorflow as tf
|
9 |
from PIL import Image
|
10 |
import numpy as np
|
11 |
|
12 |
# load files
|
13 |
|
14 |
-
model=tf.keras.models.load_model('
|
15 |
|
16 |
klas = ['baseball_cap', 'beanie_hat', 'bucket_hat', 'fedora_hat', 'flat_cap']
|
17 |
|
|
|
3 |
import os
|
4 |
import sys
|
5 |
from io import BytesIO, StringIO
|
|
|
|
|
6 |
import tensorflow as tf
|
7 |
from PIL import Image
|
8 |
import numpy as np
|
9 |
|
10 |
# load files
|
11 |
|
12 |
+
model=tf.keras.models.load_model('best_model_sore.keras')
|
13 |
|
14 |
klas = ['baseball_cap', 'beanie_hat', 'bucket_hat', 'fedora_hat', 'flat_cap']
|
15 |
|