hysts HF Staff commited on
Commit
bbcc324
·
1 Parent(s): 36711e2
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -53,8 +53,7 @@ def predict(image: PIL.Image.Image) -> np.ndarray:
53
  return out, res
54
 
55
 
56
- image_dir = pathlib.Path("images")
57
- examples = [[path.as_posix()] for path in sorted(image_dir.glob("*.jpg"))]
58
 
59
  demo = gr.Interface(
60
  fn=predict,
 
53
  return out, res
54
 
55
 
56
+ examples = sorted(pathlib.Path("images").glob("*.jpg"))
 
57
 
58
  demo = gr.Interface(
59
  fn=predict,