lp128396 commited on
Commit
f969e01
Β·
verified Β·
1 Parent(s): d6c8f4a

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +2 -2
src/app.py CHANGED
@@ -4,13 +4,13 @@ import tensorflow as tf
4
  from tensorflow.keras.models import load_model
5
  from PIL import Image
6
  import numpy as np
7
- import os
8
 
9
  from huggingface_hub import hf_hub_download
10
 
11
  st.title("lung cancer detection")
12
  st.write("Upload an image of a lung X-ray to detect lung cancer.")
13
- os.environ["HF_HOME"] = "/tmp"
14
  # Download model from Hugging Face model hub
15
  model_path = hf_hub_download(
16
  repo_id="lp128396/lung_cancer_model", # πŸ‘ˆ replace with your actual username and repo
 
4
  from tensorflow.keras.models import load_model
5
  from PIL import Image
6
  import numpy as np
7
+
8
 
9
  from huggingface_hub import hf_hub_download
10
 
11
  st.title("lung cancer detection")
12
  st.write("Upload an image of a lung X-ray to detect lung cancer.")
13
+
14
  # Download model from Hugging Face model hub
15
  model_path = hf_hub_download(
16
  repo_id="lp128396/lung_cancer_model", # πŸ‘ˆ replace with your actual username and repo