Spaces:
Runtime error
Runtime error
RRoundTable
commited on
Commit
·
6956f4b
1
Parent(s):
691eb11
Change tab order
Browse files
app.py
CHANGED
|
@@ -118,15 +118,6 @@ def instance_recognition(
|
|
| 118 |
with gr.Blocks() as demo:
|
| 119 |
gr.Markdown("# Instance Recogniton with DINOV2")
|
| 120 |
|
| 121 |
-
with gr.Tab("Image Embedding with database"):
|
| 122 |
-
with gr.Row():
|
| 123 |
-
embedding_btn = gr.Button(value="Image Embedding")
|
| 124 |
-
image_zip_file = gr.File(type="file", label="Image Zip File")
|
| 125 |
-
image_embedding_file = gr.File(type="binary", label="Image Embedding with DINOV2")
|
| 126 |
-
embedding_btn.click(
|
| 127 |
-
calculate_embedding, inputs=image_zip_file, outputs=image_embedding_file,
|
| 128 |
-
)
|
| 129 |
-
|
| 130 |
with gr.Tab("Instance Recognition"):
|
| 131 |
|
| 132 |
with gr.Row():
|
|
@@ -149,5 +140,15 @@ with gr.Blocks() as demo:
|
|
| 149 |
outputs=output_images + distances,
|
| 150 |
)
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
if __name__ == "__main__":
|
| 153 |
demo.launch(server_name="0.0.0.0")
|
|
|
|
| 118 |
with gr.Blocks() as demo:
|
| 119 |
gr.Markdown("# Instance Recogniton with DINOV2")
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
with gr.Tab("Instance Recognition"):
|
| 122 |
|
| 123 |
with gr.Row():
|
|
|
|
| 140 |
outputs=output_images + distances,
|
| 141 |
)
|
| 142 |
|
| 143 |
+
with gr.Tab("Image Embedding with database"):
|
| 144 |
+
with gr.Row():
|
| 145 |
+
embedding_btn = gr.Button(value="Image Embedding")
|
| 146 |
+
image_zip_file = gr.File(type="file", label="Image Zip File")
|
| 147 |
+
image_embedding_file = gr.File(type="binary", label="Image Embedding with DINOV2")
|
| 148 |
+
embedding_btn.click(
|
| 149 |
+
calculate_embedding, inputs=image_zip_file, outputs=image_embedding_file,
|
| 150 |
+
)
|
| 151 |
+
|
| 152 |
+
|
| 153 |
if __name__ == "__main__":
|
| 154 |
demo.launch(server_name="0.0.0.0")
|