From 42e80108f57830f14c2a20884371b7df2d60dd60 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 25 Jul 2024 08:01:42 -0700 Subject: [PATCH] UI: clear the markdown LRU cache when using the default/notebook tabs --- modules/html_generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/html_generator.py b/modules/html_generator.py index 1b687ade..c5eba5a8 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -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'
{string}
' return string