Skip to content

Commit

Permalink
Add custom JS privacy statement example
Browse files Browse the repository at this point in the history
sd109 committed May 1, 2024
1 parent 7144f40 commit d2630aa
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions chart/web-app/example-settings.yml
Original file line number Diff line number Diff line change
@@ -2,26 +2,39 @@ backend_url: http://localhost:8081
hf_model_name: ise-uiuc/Magicoder-S-DS-6.7B

# model_instruction: You are a helpful and cheerful AI assistant. Please respond appropriately.
# llm_max_tokens:
# llm_temperature:
# llm_top_p:
# llm_frequency_penalty:
# llm_presence_penalty:

page_description: "[Custom Markdown](https://google.com)"

# UI theming tweaks
theme_background_colour: "#00376c"
theme_params:
# primary_hue: blue
# Use local system fonts rather than Google fonts API
font:
- sans-serif
font_mono:
- sans-serif

# Customise page title colour
css_overrides: |
h1 {
color: white;
padding-top: 1em;
}
# llm_max_tokens:
# llm_temperature:
# llm_top_p:
# llm_frequency_penalty:
# llm_presence_penalty:
# Example of a custom JS function which adds a
# privacy statement link to the page footer
custom_javascript: |
function addPrivacyStatement() {
var footer = document.querySelector('footer');
footer.appendChild(footer.children[1].cloneNode(deep=true));
var item = footer.children[2].cloneNode();
item.href = 'https://gdpr.eu/eu-gdpr-personal-data/';
item.textContent = 'Privacy Statement';
footer.appendChild(item);
}

0 comments on commit d2630aa

Please sign in to comment.