lcolonn commited on
Commit
827fc1c
·
1 Parent(s): 009a368

Upload 4 files

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -1
  2. requirements.txt +2 -1
  3. run_app.sh +22 -0
Dockerfile CHANGED
@@ -17,4 +17,6 @@ EXPOSE 8501
17
 
18
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
19
 
20
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
17
 
18
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
19
 
20
+ RUN chmod +x run_app.sh
21
+
22
+ ENTRYPOINT ["./run_app.sh"]
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  altair
2
  pandas
3
- streamlit
 
 
1
  altair
2
  pandas
3
+ streamlit
4
+ mlipaudit @git+https://github.com/instadeepai/mlipaudit-open@main
run_app.sh ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ HF_DATASET_REPO="InstaDeepAI/mlipaudit-results"
4
+ HF_DATASET_LOCAL_PATH="./results"
5
+
6
+ echo "Attempting to download dataset from ${HF_DATASET_REPO} to ${HF_DATASET_LOCAL_PATH}..."
7
+
8
+ # Ensure the local data directory exists
9
+ mkdir -p ${HF_DATASET_LOCAL_PATH}
10
+
11
+ huggingface-cli download --repo-id ${HF_DATASET_REPO} --local-dir ${HF_DATASET_LOCAL_PATH} --repo-type dataset
12
+
13
+ if [ $? -eq 0 ]; then
14
+ echo "Dataset downloaded successfully!"
15
+ else
16
+ echo "Failed to download dataset."
17
+ exit 1 # Exit if download fails
18
+ fi
19
+
20
+ echo "Starting Streamlit app..."
21
+ exec streamlit run src/app.py --server.port=8501 --server.address=0.0.0.0
22
+