CodeAntidote commited on
Commit
4f7e7c5
·
verified ·
1 Parent(s): d8042fe

Initial free bot test

Browse files
Files changed (2) hide show
  1. INSTALL.md +26 -0
  2. index.html +69 -18
INSTALL.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FaithMatch Copilot Free — Install
2
+
3
+ ## A. Deploy the free Hugging Face Space
4
+ 1. Go to https://huggingface.co/new-space
5
+ 2. Name it `faithmatch-copilot-free`.
6
+ 3. Choose **Static HTML** as the SDK.
7
+ 4. Choose Public (or another visibility available to your account).
8
+ 5. Create the Space.
9
+ 6. In **Files**, upload the two files from `huggingface-space/`:
10
+ - `README.md`
11
+ - `index.html`
12
+ 7. Commit the files. The Space should deploy automatically.
13
+
14
+ ## B. Install the Chrome companion extension
15
+ 1. Unzip this package on your Mac.
16
+ 2. In Chrome open `chrome://extensions`.
17
+ 3. Turn on **Developer mode**.
18
+ 4. Click **Load unpacked**.
19
+ 5. Select the `chrome-extension` folder.
20
+ 6. Pin **FaithMatch Copilot Free**.
21
+ 7. Open/refresh Christian Mingle and open a profile.
22
+ 8. Click the extension → **Analyze profile**.
23
+ 9. Review the generated opener → **Copy** → paste it yourself.
24
+
25
+ ## Free V1 limitations
26
+ This version uses deterministic local analysis/templates, not a cloud LLM. That keeps it genuinely $0 and avoids API keys. A later paid version can replace the generator with a stronger model while keeping the same extension workflow.
index.html CHANGED
@@ -1,19 +1,70 @@
1
  <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
5
+ <title>FaithMatch Copilot</title>
6
+ <style>
7
+ :root{font-family:Inter,system-ui,sans-serif;color:#26342d;background:#f4f1ed}
8
+ *{box-sizing:border-box} body{margin:0}.wrap{max-width:980px;margin:auto;padding:34px 20px}
9
+ .hero{background:#496556;color:white;padding:28px;border-radius:24px}.hero h1{margin:0 0 8px;font-size:34px}
10
+ .card{background:white;margin-top:18px;padding:22px;border-radius:20px;box-shadow:0 6px 22px #0000000d}
11
+ textarea{width:100%;min-height:220px;border:1px solid #d8d8d2;border-radius:14px;padding:14px;font-size:15px;resize:vertical}
12
+ button,select{border:0;border-radius:12px;padding:12px 16px;font-size:15px}
13
+ button{background:#496556;color:white;font-weight:700;cursor:pointer}button.secondary{background:#eeeae5;color:#26342d}
14
+ .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.result{white-space:pre-wrap;background:#f7f5f2;padding:16px;border-radius:14px;min-height:80px}
15
+ .small{font-size:13px;color:#6b746f}.chips span{display:inline-block;background:#edf2ee;padding:7px 10px;border-radius:99px;margin:4px 4px 0 0}
16
+ </style>
17
+ </head>
18
+ <body><div class="wrap">
19
+ <div class="hero"><h1>FaithMatch Copilot</h1><div>Free local-first opener assistant. You choose what to send.</div></div>
20
+ <div class="card"><h2>1. Paste profile text</h2><textarea id="profile" placeholder="Paste the About Me, interests, qualities and other visible profile text here..."></textarea></div>
21
+ <div class="card"><h2>2. Choose style</h2><div class="row">
22
+ <select id="style"><option value="natural">Natural</option><option value="playful">Playful</option><option value="faith">Faith & values</option></select>
23
+ <button onclick="analyze()">Generate opener</button></div></div>
24
+ <div class="card"><h2>Profile signals</h2><div id="signals" class="chips"></div></div>
25
+ <div class="card"><h2>Suggested opener</h2><div id="result" class="result">Your message will appear here.</div>
26
+ <div class="row" style="margin-top:12px"><button onclick="copyMsg()">Copy message</button><button class="secondary" onclick="analyze(true)">Try another</button><span id="count" class="small"></span></div></div>
27
+ <div class="card small">This free version runs entirely in your browser and does not request dating-site credentials. It does not send messages automatically.</div>
28
+ </div>
29
+ <script>
30
+ const hooks=[
31
+ ["children",["children","kids","child","teacher","teaching"],"working with children"],
32
+ ["music",["music","concert","concerts","singing","songs"],"music and concerts"],
33
+ ["travel",["travel","traveling","travelling","places","adventure"],"travel and new experiences"],
34
+ ["faith",["jesus","christ","christian","church","faith","god"],"faith"],
35
+ ["family",["family","family-oriented","family oriented"],"family"],
36
+ ["communication",["communication","honesty","consistent","consistency"],"honesty and communication"],
37
+ ["outdoors",["hiking","outdoors","camping","nature"],"the outdoors"],
38
+ ["food",["food","cooking","restaurant","coffee"],"food and trying new places"],
39
+ ["animals",["dog","dogs","cat","cats","animals","horse","horses"],"animals"]
40
+ ];
41
+ let variant=0;
42
+ function scan(t){t=t.toLowerCase();return hooks.filter(h=>h[1].some(k=>t.includes(k))).map(h=>h[2]);}
43
+ function nameFrom(t){let m=t.match(/^\s*([A-ZÀ-ÖØ-Þ][A-Za-zÀ-ÿ'’-]{1,20})(?:\s*,?\s*\d{2})?/m);return m?m[1]:"there";}
44
+ function analyze(again=false){
45
+ const t=document.getElementById("profile").value.trim(); if(!t){alert("Paste profile text first.");return}
46
+ if(again) variant++;
47
+ const sig=scan(t), name=nameFrom(t), style=document.getElementById("style").value;
48
+ document.getElementById("signals").innerHTML=(sig.length?sig:["substantive profile"]).slice(0,6).map(x=>`<span>✓ ${x}</span>`).join("");
49
+ const a=sig[0]||"what you shared in your profile", b=sig[1];
50
+ let msgs=[];
51
+ if(style==="faith") msgs=[
52
+ `Hey ${name}! I liked what you shared about ${a}${b?` and ${b}`:""}. Faith is important to me too, and I appreciate profiles that say something meaningful. What has been most important to you in your faith lately?`,
53
+ `Hey ${name}! Your profile caught my attention, especially the part about ${a}. I’m involved in my church community too. What’s something you really enjoy doing outside of your usual week?`
54
+ ];
55
+ else if(style==="playful") msgs=[
56
+ `Hey ${name}! ${a.charAt(0).toUpperCase()+a.slice(1)} caught my attention${b?`, and ${b} definitely gave me another reason to say hi`:""}. What’s one thing you could happily talk about way too long?`,
57
+ `Hey ${name}! You gave me an easy conversation starter with ${a}. I have to ask—what’s your current favorite thing about it?`
58
+ ];
59
+ else msgs=[
60
+ `Hey ${name}! I liked what you shared about ${a}${b?` and ${b}`:""}. It felt genuine, so I wanted to say hi. What’s something you’ve been enjoying lately?`,
61
+ `Hey ${name}! The part about ${a} caught my attention. I appreciate someone who puts some thought into their profile. What got you interested in it?`
62
+ ];
63
+ let msg=msgs[variant%msgs.length];
64
+ if(/profile is (ran|run|managed) by (her|his|their) sister/i.test(t)) msg=`Hey ${name}! I read the note that your sister is helping with the profile, and I appreciated the honesty. The part about ${a} caught my attention too. What’s something you personally enjoy doing when you have a free weekend?`;
65
+ if(msg.length>400) msg=msg.slice(0,397)+"...";
66
+ document.getElementById("result").textContent=msg;
67
+ document.getElementById("count").textContent=`${msg.length} / 400 characters`;
68
+ }
69
+ async function copyMsg(){await navigator.clipboard.writeText(document.getElementById("result").textContent);document.getElementById("count").textContent+=" • Copied";}
70
+ </script></body></html>