RemiHebbelinck commited on
Commit
7d24531
·
1 Parent(s): 40bba05
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. main.py +0 -1
Dockerfile CHANGED
@@ -10,6 +10,8 @@ COPY requirements.txt .
10
  # Installeer de benodigde packages
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
 
13
  # Kopieer de rest van de applicatiecode en het model
14
  COPY . .
15
 
 
10
  # Installeer de benodigde packages
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ RUN mkdir -p /app/model
14
+
15
  # Kopieer de rest van de applicatiecode en het model
16
  COPY . .
17
 
main.py CHANGED
@@ -21,7 +21,6 @@ app.add_middleware(
21
  # Download het model van je HuggingFace model repo
22
  repo_id = "RemiHebbelinck/masterclass-2025"
23
  local_dir = "./model"
24
- os.makedirs(local_dir, exist_ok=True)
25
  hf_hub_download(repo_id, filename="config.json", repo_type="model", local_dir="./model")
26
  hf_hub_download(repo_id, filename="metadata.json", repo_type="model", local_dir="./model")
27
  hf_hub_download(repo_id, filename="model.weights.h5", repo_type="model", local_dir="./model")
 
21
  # Download het model van je HuggingFace model repo
22
  repo_id = "RemiHebbelinck/masterclass-2025"
23
  local_dir = "./model"
 
24
  hf_hub_download(repo_id, filename="config.json", repo_type="model", local_dir="./model")
25
  hf_hub_download(repo_id, filename="metadata.json", repo_type="model", local_dir="./model")
26
  hf_hub_download(repo_id, filename="model.weights.h5", repo_type="model", local_dir="./model")