leonelhs commited on
Commit
5eb2b4d
1 Parent(s): 6012655
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +2 -2
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .idea/
app.py CHANGED
@@ -5,7 +5,7 @@ from zeroscratches import EraseScratches
5
  os.system("pip freeze")
6
 
7
 
8
- def inference(img):
9
  return EraseScratches().erase(img)
10
 
11
 
@@ -27,7 +27,7 @@ This demo is running on a CPU, if you like this project please make us a donatio
27
  """
28
 
29
  demo = gr.Interface(
30
- inference, [
31
  gr.Image(type="pil", label="Input"),
32
  ], [
33
  gr.Image(type="numpy", label="Image zero scratches")
 
5
  os.system("pip freeze")
6
 
7
 
8
+ def predict(img):
9
  return EraseScratches().erase(img)
10
 
11
 
 
27
  """
28
 
29
  demo = gr.Interface(
30
+ predict, [
31
  gr.Image(type="pil", label="Input"),
32
  ], [
33
  gr.Image(type="numpy", label="Image zero scratches")