Joseph Antolick Claude Opus 4.8 commited on
Commit
ff18b7e
·
1 Parent(s): 63c0539

Update description; flag NSFW and crypto as signals

Browse files

New longer description blurb. Prompt now always adds an "NSFW" signal (and
notes it in the rationale) for adult content, and a "crypto" signal for
crypto/web3 mentions, placed first so the signal cap can't drop them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +4 -2
  2. tempercheck/prompt.py +9 -1
app.py CHANGED
@@ -56,8 +56,10 @@ PASTE_JS = """
56
  """
57
 
58
  DISCLAIMER = (
59
- "🎈 *TemperCheck is a party-game novelty. It reads vibes in a picture for "
60
- "laughs — it is **not** a real personality test and says nothing factual "
 
 
61
  "about any actual person.*"
62
  )
63
 
 
56
  """
57
 
58
  DISCLAIMER = (
59
+ "TemperCheck is a fast LLM-based back-of-the-envelope calculation to see if a "
60
+ "given social media profile is run by someone with a bad temper. It performs a "
61
+ "quick visual analysis of a screenshot of a profile, and makes a hypothetical "
62
+ "judgment accordingly. *It is NOT a real personality and says nothing factual "
63
  "about any actual person.*"
64
  )
65
 
tempercheck/prompt.py CHANGED
@@ -44,6 +44,14 @@ Score guide (0 = delightful, 100 = run):
44
  61-80 clearly prickly: sarcasm, negativity, or pride-in-conflict present
45
  81-100 multiple strong warning signs (e.g. hostility + slurs/anger + conflict-pride)
46
 
 
 
 
 
 
 
 
 
47
  Respond with ONLY a single JSON object, no prose before or after, of the form:
48
  {
49
  "score": <integer 0-100, higher = shorter-tempered / crankier>,
@@ -136,7 +144,7 @@ def parse_verdict(text: str) -> TemperVerdict:
136
  signals = data.get("signals", [])
137
  if not isinstance(signals, list):
138
  signals = [str(signals)]
139
- signals = [str(s).strip() for s in signals if str(s).strip()][:5]
140
 
141
  return TemperVerdict(
142
  score=score,
 
44
  61-80 clearly prickly: sarcasm, negativity, or pride-in-conflict present
45
  81-100 multiple strong warning signs (e.g. hostility + slurs/anger + conflict-pride)
46
 
47
+ Two extra content flags, independent of temper — ALWAYS add the tag when present:
48
+ - If the profile content looks NSFW / sexually explicit / adult (suggestive bio,
49
+ "18+", "spicy content", links to adult sites, explicit imagery), add the signal
50
+ "NSFW" AND mention the NSFW content in your rationale.
51
+ - If the profile mentions crypto (Bitcoin, Ethereum, NFTs, tokens, "$TICKER",
52
+ "to the moon", web3, "diamond hands", trading shills), add the signal "crypto".
53
+ Put any NSFW/crypto tags FIRST in the signals list so they are never dropped.
54
+
55
  Respond with ONLY a single JSON object, no prose before or after, of the form:
56
  {
57
  "score": <integer 0-100, higher = shorter-tempered / crankier>,
 
144
  signals = data.get("signals", [])
145
  if not isinstance(signals, list):
146
  signals = [str(signals)]
147
+ signals = [str(s).strip() for s in signals if str(s).strip()][:6]
148
 
149
  return TemperVerdict(
150
  score=score,