Spaces:
Sleeping
Sleeping
danibalcells
commited on
Commit
•
1bd9c6a
1
Parent(s):
1b59f08
Fix bad indent
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ STORAGE_NAME = Path('model/storage.pkl')
|
|
9 |
iirwi = IIRWI.from_filenames(EXTRACTOR_NAME, STORAGE_NAME)
|
10 |
|
11 |
def predict(input_image):
|
12 |
-
|
13 |
-
|
14 |
|
15 |
iface = gr.Interface(
|
16 |
fn=predict,
|
|
|
9 |
iirwi = IIRWI.from_filenames(EXTRACTOR_NAME, STORAGE_NAME)
|
10 |
|
11 |
def predict(input_image):
|
12 |
+
img = fv.PILImage.create(input_image)
|
13 |
+
return iirwi.process(img)
|
14 |
|
15 |
iface = gr.Interface(
|
16 |
fn=predict,
|