Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,12 +109,20 @@ def process_images(flat_img, persp_img, json_file):
|
|
| 109 |
|
| 110 |
iface = gr.Interface(
|
| 111 |
fn=process_images,
|
| 112 |
-
inputs=[
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
)
|
| 119 |
|
| 120 |
-
iface.launch()
|
|
|
|
| 109 |
|
| 110 |
iface = gr.Interface(
|
| 111 |
fn=process_images,
|
| 112 |
+
inputs=[
|
| 113 |
+
gr.Image(type="numpy", label="Flat Image"),
|
| 114 |
+
gr.Image(type="numpy", label="Perspective Image"),
|
| 115 |
+
gr.File(type="file", label="JSON File")
|
| 116 |
+
], # <-- ye closing bracket should be ]
|
| 117 |
+
outputs=[ # <-- starts a new list
|
| 118 |
+
gr.Gallery(label="Results"),
|
| 119 |
+
gr.File(label="Download SIFT Result"),
|
| 120 |
+
gr.File(label="Download ORB Result"),
|
| 121 |
+
gr.File(label="Download BRISK Result"),
|
| 122 |
+
gr.File(label="Download AKAZE Result"),
|
| 123 |
+
gr.File(label="Download KAZE Result")
|
| 124 |
+
], # <-- should be ] not )
|
| 125 |
+
title="Homography & ROI Projection",
|
| 126 |
+
description="..."
|
| 127 |
)
|
| 128 |
|
|
|