Skip to content

Commit

Permalink
Minor style updates
Browse files Browse the repository at this point in the history
- Bump to 0.13.7
  • Loading branch information
smathot committed Mar 17, 2024
1 parent 9677b99 commit e63c9b6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
3 changes: 3 additions & 0 deletions heymans/static/login.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Sigmund: your friendly, privacy-minded AI assistant!

&#128150; Your subscription<br>supports open source
{: .pretty-text }

- Better at answering questions about [OpenSesame](https://osdoc.cogsci.nl/) and [DataMatrix](https://pydatamatrix.eu) than other chatbots
- Built on state-of-the-art language models (OpenAI's GPT4 and Mistral Large), and therefore also an excellent general-purpose chatbot
- Messages and attachments are encrypted so that no-one can listen in on your conversation
Expand Down
31 changes: 22 additions & 9 deletions heymans/templates/stylesheet.css.jinja
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto+Condensed&family=Roboto+Flex&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto+Condensed&family=Roboto+Flex&family=Lobster+Two&family=Madimi+One&display=swap');

body {
background-color: #ECEFF1;
Expand All @@ -7,27 +7,27 @@ body {

h1 {
font-size: 1.4em;
font-family: "Roboto Slab", serif;
}

h2 {
font-size: 1.2em;
font-family: "Roboto Slab", serif;
}

h3 {
font-size: 1em;
font-family: "Roboto Slab", serif;
}

h1, h2, h3 {
font-family: "Madimi One", serif;
font-weight: normal;
color: #bf360c;
}

blockquote {
font-style: italic;
}

a {
color: #0288d1;
}

a,
a:visited {
color: #0288d1;
}
Expand Down Expand Up @@ -244,6 +244,10 @@ button#start {
margin-block-end: 10px;
}

#start-text ul {
padding-left: 18px;
}

#loading {
margin-bottom: 10px;
}
Expand Down Expand Up @@ -279,7 +283,7 @@ button#start {
#start-text {
margin-top: 0px;
margin-bottom: 20px;
padding: 10px;
padding: 10px 20px 10px 20px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
Expand Down Expand Up @@ -364,3 +368,12 @@ button#start {
.message-ai:hover .message-delete {
display: block;
}

.pretty-text {
font-family: "Lobster Two";
background-color: #ffd600;
border-radius: 4px;
padding: 8px;
float: right;
margin: 0px 0px 20px 20px!important;
}
4 changes: 3 additions & 1 deletion heymans/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from markdown.extensions.fenced_code import FencedCodeExtension
from markdown.extensions.codehilite import CodeHiliteExtension
from markdown.extensions.toc import TocExtension
from markdown.extensions.attr_list import AttrListExtension
from langchain.schema import HumanMessage
from . import config
from . import __version__
Expand All @@ -19,7 +20,8 @@ def md(text):
return markdown.markdown(text,
extensions=[FencedCodeExtension(),
CodeHiliteExtension(),
TocExtension()])
TocExtension(),
AttrListExtension()])


def clean(text, escape_html=True, render=True):
Expand Down

0 comments on commit e63c9b6

Please sign in to comment.