Spaces:
Build error
Build error
Commit
·
764c7a4
1
Parent(s):
683300a
Upload app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,12 @@ def show_preds_image(image_path):
|
|
15 |
A = (A - 127.5) / 127.5
|
16 |
A = np.expand_dims(A,axis=0)
|
17 |
B = model.predict(A)
|
18 |
-
B=np.squeeze(B,axis=0)
|
19 |
B = (B + 1) / 2.0
|
20 |
return B
|
21 |
|
22 |
inputs_image = [
|
23 |
-
gr.components.Image(type="filepath", label="Input Image"),
|
24 |
]
|
25 |
outputs_image = [
|
26 |
gr.components.Image(type="numpy", label="Output Image"),
|
|
|
15 |
A = (A - 127.5) / 127.5
|
16 |
A = np.expand_dims(A,axis=0)
|
17 |
B = model.predict(A)
|
18 |
+
B = np.squeeze(B,axis=0)
|
19 |
B = (B + 1) / 2.0
|
20 |
return B
|
21 |
|
22 |
inputs_image = [
|
23 |
+
gr.components.Image(shape=(256,256),type="filepath", label="Input Image"),
|
24 |
]
|
25 |
outputs_image = [
|
26 |
gr.components.Image(type="numpy", label="Output Image"),
|