Hermes Bot commited on
fix(tinybard): use correct logger name (log not logger)
Browse files- projects/tinybard/app.py +3 -3
projects/tinybard/app.py
CHANGED
|
@@ -255,12 +255,12 @@ def generate_llm_choices(genre: str, story_context: str) -> List[str]:
|
|
| 255 |
temperature=0.6,
|
| 256 |
)
|
| 257 |
raw = result.text.strip() if result.text else ""
|
| 258 |
-
|
| 259 |
choices = _parse_choices(raw)
|
| 260 |
-
|
| 261 |
return choices
|
| 262 |
except Exception:
|
| 263 |
-
|
| 264 |
return []
|
| 265 |
|
| 266 |
|
|
|
|
| 255 |
temperature=0.6,
|
| 256 |
)
|
| 257 |
raw = result.text.strip() if result.text else ""
|
| 258 |
+
log.info(f"[choices] raw LLM output: {raw!r}")
|
| 259 |
choices = _parse_choices(raw)
|
| 260 |
+
log.info(f"[choices] parsed {len(choices)} choices: {choices}")
|
| 261 |
return choices
|
| 262 |
except Exception:
|
| 263 |
+
log.exception("[choices] LLM choice generation failed")
|
| 264 |
return []
|
| 265 |
|
| 266 |
|