mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
UI: clear the markdown LRU cache when using the default/notebook tabs
This commit is contained in:
parent
a34273755b
commit
42e80108f5
@ -150,6 +150,7 @@ def convert_to_markdown_wrapped(string, use_cache=True):
|
||||
|
||||
|
||||
def generate_basic_html(string):
|
||||
convert_to_markdown.cache_clear()
|
||||
string = convert_to_markdown(string)
|
||||
string = f'<style>{readable_css}</style><div class="readable-container">{string}</div>'
|
||||
return string
|
||||
|
Loading…
Reference in New Issue
Block a user