mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-27 07:44:39 +01:00
Remove some log messages
This commit is contained in:
parent
3f9eb3aad1
commit
1c1fd3be46
|
|
@ -1271,8 +1271,6 @@ def clear_character_for_ui(state):
|
|||
if cache_path.exists():
|
||||
cache_path.unlink()
|
||||
|
||||
logger.info("Cleared character fields and picture cache")
|
||||
|
||||
return state, state['name2'], state['context'], state['greeting'], None
|
||||
|
||||
|
||||
|
|
@ -1779,7 +1777,6 @@ def handle_character_picture_change(picture):
|
|||
picture.save(Path(f'{cache_folder}/pfp_character.png'), format='PNG')
|
||||
thumb = make_thumbnail(picture)
|
||||
thumb.save(Path(f'{cache_folder}/pfp_character_thumb.png'), format='PNG')
|
||||
logger.info("Updated character picture cache")
|
||||
else:
|
||||
# Remove cache files when picture is cleared
|
||||
for cache_file in ['pfp_character.png', 'pfp_character_thumb.png']:
|
||||
|
|
@ -1787,8 +1784,6 @@ def handle_character_picture_change(picture):
|
|||
if cache_path.exists():
|
||||
cache_path.unlink()
|
||||
|
||||
logger.info("Cleared character picture cache")
|
||||
|
||||
|
||||
def handle_mode_change(state):
|
||||
history = load_latest_history(state)
|
||||
|
|
|
|||
Loading…
Reference in a new issue