Spaces:
Running
Running
make api
Browse files- .gitignore +1 -0
- 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
|
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 |
-
|
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")
|