Skip to content

Commit

Permalink
update ui for chainlit 1.0 (microsoft#117)
Browse files Browse the repository at this point in the history
Adjust UI part to fit in chainlit 1.0 version
  • Loading branch information
ShilinHe authored Jan 15, 2024
2 parents a9b756f + e741add commit fa75e47
Show file tree
Hide file tree
Showing 7 changed files with 492 additions and 80 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ share/python-wheels/
*.egg
MANIFEST

.files/

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
Expand Down
6 changes: 3 additions & 3 deletions playground/UI/.chainlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cache = false
prompt_playground = true

# Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)
unsafe_allow_html = false
unsafe_allow_html = true

# Process and display mathematical expressions. This can clash with "$" characters in messages.
latex = false
Expand Down Expand Up @@ -47,7 +47,7 @@ show_readme_as_default = true
default_collapse_content = false

# The default value for the expand messages settings.
default_expand_messages = false
default_expand_messages = true

# Hide the chain of thought details from the user in the UI.
hide_cot = false
Expand All @@ -57,7 +57,7 @@ hide_cot = false

# Specify a CSS file that can be used to customize the user interface.
# The CSS file can be served from the public directory or via an external link.
custom_css = "/public/style.css"
custom_css = "/public/style_v1.css"

# Override default MUI light theme. (Check theme.ts)
[UI.theme.light]
Expand Down
Loading

0 comments on commit fa75e47

Please sign in to comment.