Hermes Bot commited on
Commit
e78038c
·
unverified ·
1 Parent(s): 3169187

fix(tinybard): use correct logger name (log not logger)

Browse files
Files changed (1) hide show
  1. 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
- logger.info(f"[choices] raw LLM output: {raw!r}")
259
  choices = _parse_choices(raw)
260
- logger.info(f"[choices] parsed {len(choices)} choices: {choices}")
261
  return choices
262
  except Exception:
263
- logger.exception("[choices] LLM choice generation failed")
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