zxcgqq commited on
Commit
c58cc4e
·
1 Parent(s): fe64c10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def load_images(image_paths, image_size, verbose=True):
51
  return np.asarray(loaded_images)
52
 
53
  def classify_nd(model, nd_images, predict_args={}):
54
- file_path = "https://tenfei03.cfp.cn/creative/vcg/800/version23/VCG211be3c9c31.jpg"
55
  img = load_image(file_path,(299,299))
56
  model_preds = model.predict(img, **predict_args)
57
  categories = ['drawings', 'hentai', 'neutral', 'porn', 'sexy']
 
51
  return np.asarray(loaded_images)
52
 
53
  def classify_nd(model, nd_images, predict_args={}):
54
+ file_path = "test.png"
55
  img = load_image(file_path,(299,299))
56
  model_preds = model.predict(img, **predict_args)
57
  categories = ['drawings', 'hentai', 'neutral', 'porn', 'sexy']