mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-17 12:33:44 +00:00
Improved instruct style (with syntax highlighting & LaTeX rendering) (#5936)
This commit is contained in:
parent
9c04365f54
commit
6761b5e7c6
74 changed files with 1358 additions and 51 deletions
|
|
@ -13,6 +13,12 @@ with open(Path(__file__).resolve().parent / '../css/NotoSans/stylesheet.css', 'r
|
|||
css = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/main.css', 'r') as f:
|
||||
css += f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/katex/katex.min.css', 'r') as f:
|
||||
css += f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/highlightjs/github-dark.min.css', 'r') as f:
|
||||
css += f.read()
|
||||
with open(Path(__file__).resolve().parent / '../css/highlightjs/highlightjs-copy.min.css', 'r') as f:
|
||||
css += f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/main.js', 'r') as f:
|
||||
js = f.read()
|
||||
with open(Path(__file__).resolve().parent / '../js/save_files.js', 'r') as f:
|
||||
|
|
@ -36,7 +42,7 @@ theme = gr.themes.Default(
|
|||
button_large_padding='6px 12px',
|
||||
body_text_color_subdued='#484848',
|
||||
background_fill_secondary='#eaeaea',
|
||||
background_fill_primary='#fafafa',
|
||||
background_fill_primary='var(--neutral-50)',
|
||||
)
|
||||
|
||||
if Path("notification.mp3").exists():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue