Spaces:
Sleeping
Sleeping
sakshamlakhera
commited on
Commit
·
85a1f1d
1
Parent(s):
869d37b
docker fix
Browse files- Dockerfile +1 -1
- pages/2_Variation_Detection.py +1 -1
Dockerfile
CHANGED
|
@@ -18,6 +18,6 @@ RUN pip3 install --no-cache-dir -r requirements.txt
|
|
| 18 |
EXPOSE 8501
|
| 19 |
|
| 20 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 21 |
-
|
| 22 |
# Run Home.py which is in the root directory
|
| 23 |
ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 18 |
EXPOSE 8501
|
| 19 |
|
| 20 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 21 |
+
RUN chmod -R 777 /
|
| 22 |
# Run Home.py which is in the root directory
|
| 23 |
ENTRYPOINT ["streamlit", "run", "Home.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
pages/2_Variation_Detection.py
CHANGED
|
@@ -2,7 +2,7 @@ from utils.layout import render_layout
|
|
| 2 |
import streamlit as st
|
| 3 |
from PIL import Image
|
| 4 |
from model.classifier import predict, get_model_by_name
|
| 5 |
-
import
|
| 6 |
|
| 7 |
VARIATION_CLASS_MAP = {
|
| 8 |
"Onion": ['halved', 'sliced', 'whole'],
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from PIL import Image
|
| 4 |
from model.classifier import predict, get_model_by_name
|
| 5 |
+
import config as config
|
| 6 |
|
| 7 |
VARIATION_CLASS_MAP = {
|
| 8 |
"Onion": ['halved', 'sliced', 'whole'],
|