File size: 2,891 Bytes
bda739d
8b916da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bda739d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Next Match</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
  <header>
    <h1>Next Match</h1>
    <p>Search with a picture <em>and</em> a sentence: pick a product, then say what to change — “bunun kırmızı olanı”, “çizgili olanı”, “same but a hat”. The image alone or the text alone cannot find it; together they can. Turkish and English both work. Ranking runs in your browser.</p>
    <div class="badges"><span class="badge warn">Synthetic catalog (procedurally drawn icons)</span><span class="badge">Live in-browser retrieval</span><a class="badge" href="https://huggingface.co/thelamapi/Next-Match">Model repo</a></div>
  </header>
  <div class="grid">
    <section class="card">
      <h2>1 · Reference</h2>
      <div id="ref" class="row"></div>
      <label for="file">…or upload your own picture</label><input type="file" id="file" accept="image/*">
      <h2 style="margin-top:12px">2 · What should change?</h2>
      <input type="text" id="q" placeholder="bunun kırmızı olanı / the red one" aria-label="edit text">
      <div id="chips" class="chips" style="margin-top:8px"></div>
      <p class="small muted" id="toks"></p>
    </section>
    <section class="card">
      <h2>Image + text (Next Match)</h2>
      <div id="r_combined" style="display:grid;grid-template-columns:repeat(4,1fr);gap:6px"></div>
      <p class="small muted">Ranked in <span id="ms">–</span> ms for all three models.</p>
    </section>
  </div>
  <div class="grid" style="margin-top:12px">
    <section class="card"><h2>Image only</h2><div id="r_image" style="display:grid;grid-template-columns:repeat(4,1fr);gap:6px"></div>
      <p class="small muted">Finds look-alikes, ignores your words.</p></section>
    <section class="card"><h2>Text only</h2><div id="r_text" style="display:grid;grid-template-columns:repeat(4,1fr);gap:6px"></div>
      <p class="small muted">Finds things matching the words, ignores the picture.</p></section>
  </div>
  <section class="card" style="margin-top:12px">
    <h2>Catalog (tap to use as reference)</h2>
    <div id="gallery" style="display:grid;grid-template-columns:repeat(auto-fill,minmax(50px,1fr));gap:4px"></div>
  </section>
  <section class="card" style="margin-top:12px"><h2>Recorded benchmark</h2><img src="preview.png" alt="Recall at K" style="width:100%;border-radius:8px"></section>
  <p class="status" id="status"></p>
  <footer>All products are drawn by code (8 categories × 8 colours × 3 patterns). Uploaded photos stay in your browser and are out of distribution.</footer>
</main>
<script src="nlrt.js"></script>
<script src="nlui.js"></script>
<script src="core.js"></script>
<script src="app.js"></script>
</body>
</html>