Spaces:
Paused
Paused
Update app.py
Browse files
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 =
|
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
|
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 |
|