MCPcopy
hub / github.com/huggingface/transformers / clear

Method clear

src/transformers/cli/chat.py:180–182  ·  view source on GitHub ↗

Clears the console.

(self)

Source from the content-addressed store, hash-verified

178 return input
179
180 def clear(self):
181 """Clears the console."""
182 self._console.clear()
183
184 def print_user_message(self, text: str):
185 """Prints a user message to the console."""

Callers 15

_inner_runMethod · 0.95
parse_lineFunction · 0.45
flush_memoryFunction · 0.45
_patched_tearDownFunction · 0.45
clear_patch_mappingFunction · 0.45
_objectiveFunction · 0.45
clear_allMethod · 0.45
reset_tracking_dataMethod · 0.45
clear_allMethod · 0.45
reset_tracking_dataMethod · 0.45

Calls

no outgoing calls