phanerozoic commited on
Commit
b12d444
Β·
verified Β·
1 Parent(s): d0ad708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ def log(msg: str):
20
  # ─────────────────────────────── Configuration ───────────────────────────────
21
  MODEL_ID = "ibm-granite/granite-3.3-2b-instruct"
22
  CTX_TOKENS = 1800
23
- MAX_NEW_TOKENS = 64
24
  TEMP = 0.6
25
  MAX_INPUT_CH = 300
26
  RATE_N, RATE_SEC = 5, 60 # 5 msgs / 60Β s per IP
@@ -37,7 +37,7 @@ SYSTEM_MSG = (
37
  "β€’ If you can’t answer, politely direct the user to [email protected].\n"
38
  "β€’ Keep language age‑appropriate; avoid profanity, politics, mature themes."
39
  )
40
- WELCOME = "HiΒ there! I’m SchoolSpiritΒ AI. Ask me about our chat mascots, fine‑tuning, or GPU servers."
41
 
42
  strip = lambda s: re.sub(r"\s+", " ", s.strip())
43
 
 
20
  # ─────────────────────────────── Configuration ───────────────────────────────
21
  MODEL_ID = "ibm-granite/granite-3.3-2b-instruct"
22
  CTX_TOKENS = 1800
23
+ MAX_NEW_TOKENS = 120
24
  TEMP = 0.6
25
  MAX_INPUT_CH = 300
26
  RATE_N, RATE_SEC = 5, 60 # 5 msgs / 60Β s per IP
 
37
  "β€’ If you can’t answer, politely direct the user to [email protected].\n"
38
  "β€’ Keep language age‑appropriate; avoid profanity, politics, mature themes."
39
  )
40
+ WELCOME = "HiΒ there! I’m SchoolSpiritΒ AI. Ask me anything about our services!"
41
 
42
  strip = lambda s: re.sub(r"\s+", " ", s.strip())
43