Suphawan commited on
Commit
faceedb
·
verified ·
1 Parent(s): a71e38c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,11 +3,10 @@ import tensorflow as tf
3
  from tensorflow.keras.applications.inception_resnet_v2 import preprocess_input
4
  from tensorflow.keras.preprocessing import image
5
  import numpy as np
6
- from huggingface_hub import hf_hub_download
7
  from PIL import Image
8
 
9
- # Download model from Hugging Face Space
10
- model_path = hf_hub_download(repo_id="Suphawan/Melanoma-1", filename="best_model_InceptionV2.keras")
11
 
12
  # Load the trained InceptionV2 model
13
  model = tf.keras.models.load_model(model_path)
 
3
  from tensorflow.keras.applications.inception_resnet_v2 import preprocess_input
4
  from tensorflow.keras.preprocessing import image
5
  import numpy as np
 
6
  from PIL import Image
7
 
8
+ # Define the path to your model file
9
+ model_path = "best_model_InceptionV2.keras"
10
 
11
  # Load the trained InceptionV2 model
12
  model = tf.keras.models.load_model(model_path)