Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_run
Method · 0.95
parse_line
Function · 0.45
flush_memory
Function · 0.45
_patched_tearDown
Function · 0.45
clear_patch_mapping
Function · 0.45
handle_non_exit_user_commands
Method · 0.45
_objective
Function · 0.45
clear_all
Method · 0.45
reset_tracking_data
Method · 0.45
reset_inference_session
Method · 0.45
clear_all
Method · 0.45
reset_tracking_data
Method · 0.45
Calls
no outgoing calls
Tested by
10
_patched_tearDown
Function · 0.36
test_from_pretrained_uses_serialized_fusion_config
Method · 0.36
test_stop_string_criteria_byte_fragments
Method · 0.36
test_stop_string_criteria_byte_fallback_fragments
Method · 0.36
test_stop_string_criteria_byte_fragment_compile
Method · 0.36
flush_memory
Function · 0.36
_test_streaming_or_not_request
Method · 0.36
test_register_result_handler
Method · 0.36
_tp_cancellation_worker
Function · 0.36
setUp
Method · 0.36