Spaces:
Paused
Paused
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def _respond(msg, history):
|
|
| 157 |
if all(c in BY_GLYPH for c in msg):
|
| 158 |
keys = [BY_GLYPH[c][0] for c in msg]
|
| 159 |
else:
|
| 160 |
-
keys = kw_parse(msg)
|
| 161 |
|
| 162 |
if keys: # stream the glyph reasoning step by step
|
| 163 |
al = lambda g: chr(0x1400 + (ord(g) - 0x4e00))
|
|
|
|
| 157 |
if all(c in BY_GLYPH for c in msg):
|
| 158 |
keys = [BY_GLYPH[c][0] for c in msg]
|
| 159 |
else:
|
| 160 |
+
keys = kw_parse(msg) # reliable; no model guessing (avoids false glyph mode on chat)
|
| 161 |
|
| 162 |
if keys: # stream the glyph reasoning step by step
|
| 163 |
al = lambda g: chr(0x1400 + (ord(g) - 0x4e00))
|