Improved instruct style (with syntax highlighting & LaTeX rendering) (#5936)

This commit is contained in:
oobabooga 2024-04-26 10:13:11 -03:00 committed by GitHub
parent 9c04365f54
commit 6761b5e7c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
74 changed files with 1358 additions and 51 deletions

View file

@ -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():