Pushpak21 commited on
Commit
bf6d426
·
verified ·
1 Parent(s): 7dd0af6

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. app.py +1 -2
Dockerfile CHANGED
@@ -18,6 +18,7 @@ ENV HOME=/home/user
18
  # 4) Prepare user home and app dir, set ownership
19
  RUN mkdir -p $HOME/app && chown -R user:user $HOME
20
 
 
21
  # 5) Now switch to the non-root user
22
  USER user
23
  WORKDIR $HOME/app
@@ -25,5 +26,6 @@ WORKDIR $HOME/app
25
  # 6) Copy the rest of the source as that user
26
  COPY --chown=user:user . $HOME/app
27
 
 
28
  # 7) Run your app
29
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
 
18
  # 4) Prepare user home and app dir, set ownership
19
  RUN mkdir -p $HOME/app && chown -R user:user $HOME
20
 
21
+
22
  # 5) Now switch to the non-root user
23
  USER user
24
  WORKDIR $HOME/app
 
26
  # 6) Copy the rest of the source as that user
27
  COPY --chown=user:user . $HOME/app
28
 
29
+
30
  # 7) Run your app
31
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
app.py CHANGED
@@ -8,8 +8,7 @@ from huggingface_hub import hf_hub_download
8
  model_path = hf_hub_download(repo_id="Pushpak21/tourism-package-model", filename="best_tourism_package_model.joblib")
9
  model = joblib.load(model_path)
10
 
11
-
12
- # Feature descriptions
13
  feature_info = {
14
  "Age": "Age of the customer (years).",
15
  "TypeofContact": "How the customer was contacted (Company Invited / Self Inquiry).",
 
8
  model_path = hf_hub_download(repo_id="Pushpak21/tourism-package-model", filename="best_tourism_package_model.joblib")
9
  model = joblib.load(model_path)
10
 
11
+ # Feature descriptions for UI
 
12
  feature_info = {
13
  "Age": "Age of the customer (years).",
14
  "TypeofContact": "How the customer was contacted (Company Invited / Self Inquiry).",