Commit
·
af85be0
0
Parent(s):
Init repo
Browse files- .gitignore +5 -0
- README.md +2 -0
- app.py +3 -0
- configs.py +2 -0
- dataset_utils.py +2 -0
- encoders.py +2 -0
- index_builder.py +2 -0
- requirements.txt +10 -0
- runtime.txt +1 -0
- spaces.yaml +9 -0
.gitignore
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__pycache__/
|
2 |
+
*.pyc
|
3 |
+
index_cache/
|
4 |
+
.siglip_cache/
|
5 |
+
.venv/
|
README.md
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
# Text → Image Retrieval (SigLIP + FAISS) on Hugging Face Spaces
|
2 |
+
... (full content from assistant's previous message) ...
|
app.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
... (truncated for brevity, full content from assistant's previous message) ...
|
configs.py
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
from __future__ import annotations
|
2 |
+
... (full content from assistant's previous message) ...
|
dataset_utils.py
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
from __future__ import annotations
|
2 |
+
... (full content from assistant's previous message) ...
|
encoders.py
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
from __future__ import annotations
|
2 |
+
... (full content from assistant's previous message) ...
|
index_builder.py
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
from __future__ import annotations
|
2 |
+
... (full content from assistant's previous message) ...
|
requirements.txt
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
gradio>=4.36.0
|
2 |
+
datasets>=2.20.0
|
3 |
+
pillow>=10.3.0
|
4 |
+
torch>=2.2.0
|
5 |
+
torchvision>=0.17.0
|
6 |
+
transformers>=4.41.0
|
7 |
+
faiss-cpu>=1.8.0
|
8 |
+
numpy>=1.26.4
|
9 |
+
huggingface-hub>=0.23.0
|
10 |
+
timm>=0.9.16
|
runtime.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
3.10
|
spaces.yaml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
title: SigLIP Text→Image Retrieval (H&M Fashion)
|
2 |
+
emoji: 🔎
|
3 |
+
colorFrom: pink
|
4 |
+
colorTo: indigo
|
5 |
+
sdk: gradio
|
6 |
+
sdk_version: 4.36.0
|
7 |
+
python_version: 3.10
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|