ConductorAILabs commited on
Commit
bc0e481
·
verified ·
1 Parent(s): bbe0d92

Upload server_app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server_app.py +2 -3
server_app.py CHANGED
@@ -33,7 +33,7 @@ _BANNED = re.compile(r"\b(" + "|".join([
33
  "dick", "piss", "slut", "whore", "nigger", "nigga", "faggot", "fag", "kike", "spic",
34
  "chink", "gook", "wetback", "tranny", "retard", "coon", "dyke", "paki", "beaner",
35
  "heil hitler", "sieg heil", "white power", "kkk", "gas the jews",
36
- ]) + r")\b", re.I)
37
 
38
 
39
  def _blocked(t):
@@ -433,8 +433,7 @@ function fadeCard(){const w=document.getElementById('credwrap');if(w)w.classList
433
  function startWriting(){phase='writing';playing(true);
434
  revealEl.style.opacity='0';spillEl.style.background=''; // dim the house only — no glow yet
435
  const t=GLYPH?("<pre class='cr-title'>"+asciiTitle()+"</pre>"):"<div class='cr-big'>LLM CINEMA</div>";
436
- showCard(t+"<div class='cr-s'><b>presents</b></div>"
437
- +"<div class='cr-sub'>now writing and directing, please wait</div>");}
438
  function playBumper(done){let i=0;
439
  (function step(){
440
  if(i>=BUMPER.length){fadeCard();creditsTimer=setTimeout(done,900);return;}
 
33
  "dick", "piss", "slut", "whore", "nigger", "nigga", "faggot", "fag", "kike", "spic",
34
  "chink", "gook", "wetback", "tranny", "retard", "coon", "dyke", "paki", "beaner",
35
  "heil hitler", "sieg heil", "white power", "kkk", "gas the jews",
36
+ ]) + r")\w*", re.I) # \w* catches suffix variants (shitty, fucking, dickhead); leading \b avoids embeds
37
 
38
 
39
  def _blocked(t):
 
433
  function startWriting(){phase='writing';playing(true);
434
  revealEl.style.opacity='0';spillEl.style.background=''; // dim the house only — no glow yet
435
  const t=GLYPH?("<pre class='cr-title'>"+asciiTitle()+"</pre>"):"<div class='cr-big'>LLM CINEMA</div>";
436
+ showCard(t+"<div class='cr-sub'>now writing and directing, please wait</div>");}
 
437
  function playBumper(done){let i=0;
438
  (function step(){
439
  if(i>=BUMPER.length){fadeCard();creditsTimer=setTimeout(done,900);return;}