vonliechti commited on
Commit
4e00a8a
·
verified ·
1 Parent(s): cc7b283

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -52,7 +52,7 @@ def stream_from_transformers_agent(
52
  terminal_message = highlight_code_terminal(message)
53
  message = highlight_code_html(message)
54
  if "Observing" in title:
55
- message = f"<div style='border:1px solid black; background-color: var(--code-background-fill); padding: 10px;'>{message.replace('\n', '<br/>')}</div>"
56
  print(colored("=== Inner Monologue Message:\n", "blue", attrs=["bold"]), f"{title}\n{terminal_message}")
57
  inner_monologue.content += f"<h2>{title}</h2><p>{message}</p>"
58
  yield title
 
52
  terminal_message = highlight_code_terminal(message)
53
  message = highlight_code_html(message)
54
  if "Observing" in title:
55
+ message = "<div style='border:1px solid black; background-color: var(--code-background-fill); padding: 10px;'>{}</div>".format(message.replace('\n', '<br/>'))
56
  print(colored("=== Inner Monologue Message:\n", "blue", attrs=["bold"]), f"{title}\n{terminal_message}")
57
  inner_monologue.content += f"<h2>{title}</h2><p>{message}</p>"
58
  yield title