Spaces:
Runtime error
Runtime error
RRoundTable
commited on
Commit
·
df8e1c7
1
Parent(s):
64a6149
Update
Browse files
app.py
CHANGED
@@ -109,7 +109,6 @@ def instance_recognition(
|
|
109 |
|
110 |
# search
|
111 |
distances, indices = index.search(image_embedding, K)
|
112 |
-
|
113 |
res = []
|
114 |
for i in indices[0]:
|
115 |
res.append(read_image(image_paths[i]))
|
@@ -123,9 +122,10 @@ with gr.Blocks() as demo:
|
|
123 |
|
124 |
with gr.Row():
|
125 |
infer_btn = gr.Button(value="Inference")
|
126 |
-
input_image = gr.Image(type="filepath", label="Input Image")
|
127 |
image_embedding_file = gr.File(type="file", label="Image Embeddings")
|
128 |
image_zip_file = gr.File(type="file", label="Image Zip File")
|
|
|
|
|
129 |
|
130 |
with gr.Row():
|
131 |
output_images = [
|
|
|
109 |
|
110 |
# search
|
111 |
distances, indices = index.search(image_embedding, K)
|
|
|
112 |
res = []
|
113 |
for i in indices[0]:
|
114 |
res.append(read_image(image_paths[i]))
|
|
|
122 |
|
123 |
with gr.Row():
|
124 |
infer_btn = gr.Button(value="Inference")
|
|
|
125 |
image_embedding_file = gr.File(type="file", label="Image Embeddings")
|
126 |
image_zip_file = gr.File(type="file", label="Image Zip File")
|
127 |
+
with gr.Row():
|
128 |
+
input_image = gr.Image(type="filepath", label="Input Image")
|
129 |
|
130 |
with gr.Row():
|
131 |
output_images = [
|