lcolonn commited on
Commit
351a7a7
·
1 Parent(s): d61d69b

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. run_app.sh +2 -2
Dockerfile CHANGED
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt ./
12
- COPY run_app.sh/ ./
13
  COPY mlipaudit-0.1.0-py3-none-any.whl ./
14
 
15
  RUN pip3 install -r requirements.txt
@@ -18,6 +17,7 @@ EXPOSE 8501
18
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
 
21
  RUN chmod +x run_app.sh
22
 
23
  ENTRYPOINT ["./run_app.sh"]
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt ./
 
12
  COPY mlipaudit-0.1.0-py3-none-any.whl ./
13
 
14
  RUN pip3 install -r requirements.txt
 
17
 
18
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
19
 
20
+ COPY run_app.sh/ ./
21
  RUN chmod +x run_app.sh
22
 
23
  ENTRYPOINT ["./run_app.sh"]
run_app.sh CHANGED
@@ -1,14 +1,14 @@
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 ${HF_DATASET_REPO} --local-dir ${HF_DATASET_LOCAL_PATH} --repo-type dataset
12
 
13
  if [ $? -eq 0 ]; then
14
  echo "Dataset downloaded successfully!"
 
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
+ hf download ${HF_DATASET_REPO} --local-dir ${HF_DATASET_LOCAL_PATH} --repo-type dataset
12
 
13
  if [ $? -eq 0 ]; then
14
  echo "Dataset downloaded successfully!"