Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -340,7 +340,7 @@ with gr.Blocks() as app:
|
|
| 340 |
``` """)
|
| 341 |
|
| 342 |
# ------------- Single -------------
|
| 343 |
-
with gr.Tab("
|
| 344 |
with gr.Row():
|
| 345 |
with gr.Column():
|
| 346 |
img = gr.Image(type="pil", label="Image", height=360)
|
|
@@ -367,8 +367,8 @@ with gr.Blocks() as app:
|
|
| 367 |
inputs=[img, model_dd, pooling, overlay],
|
| 368 |
)
|
| 369 |
|
| 370 |
-
# -------------
|
| 371 |
-
with gr.Tab("
|
| 372 |
gr.Markdown("Upload multiple images. We compute a cosine similarity matrix on GPU and return a CSV.")
|
| 373 |
files_in = gr.Files(label="Upload images", file_types=["image"], file_count="multiple", type="filepath")
|
| 374 |
gallery_preview = gr.Gallery(label="Preview", columns=4, height=300)
|
|
|
|
| 340 |
``` """)
|
| 341 |
|
| 342 |
# ------------- Single -------------
|
| 343 |
+
with gr.Tab("Embeddings"):
|
| 344 |
with gr.Row():
|
| 345 |
with gr.Column():
|
| 346 |
img = gr.Image(type="pil", label="Image", height=360)
|
|
|
|
| 367 |
inputs=[img, model_dd, pooling, overlay],
|
| 368 |
)
|
| 369 |
|
| 370 |
+
# ------------- Similarity -------------
|
| 371 |
+
with gr.Tab("Similarity"):
|
| 372 |
gr.Markdown("Upload multiple images. We compute a cosine similarity matrix on GPU and return a CSV.")
|
| 373 |
files_in = gr.Files(label="Upload images", file_types=["image"], file_count="multiple", type="filepath")
|
| 374 |
gallery_preview = gr.Gallery(label="Preview", columns=4, height=300)
|