Skip to content

Commit

Permalink
Some minor polish
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Feb 11, 2024
1 parent 71d1bc1 commit 2b1df3e
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion heymans/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""AI-based chatbot that provides sensible answers based on documentation"""

__version__ = '0.11.0'
__version__ = '0.11.1'
11 changes: 5 additions & 6 deletions heymans/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,19 @@
# The maximum length of a user message
max_message_length = 5000
# A fixed welcome message
welcome_message_with_search = '''Nice to meet you! I am Sigmund, your friendly OpenSesame assistant!
welcome_message_with_search = '''Nice to meet you! I am Sigmund, your friendly OpenSesame assistant! I am best at answering questions that are specific and that I can look up in the documentation.
I am best at answering questions that are specific and that I can look up in the documentation. I also have basic code execution abilities, can read attachments, and can look up scientific articles on Google Scholar.
If you want to discuss things that are unrelated to OpenSesame, disable "OpenSesame expert" mode in the menu (it is currently enabled). That will make me a better general-purpose chatbot.
What is your name? And would you like to learn more about how to work with me?
<small style="color:gray;">PS. If you want to discuss things that are unrelated to OpenSesame, disable "OpenSesame expert" mode in the menu. That will make me a better general-purpose chatbot.</small>'''
'''
welcome_message_without_search = '''Nice to meet you! I am Sigmund, your friendly AI assistant!
I have basic code execution abilities, I can read attachments, and I can look up scientific articles on Google Scholar.
Let\'s get started! What would like you to disuss?
If you want help with OpenSesame, enable "OpenSesame expert" mode in the menu (it is currently disabled). That will give me access to the OpenSesame documentation.
<small style="color:gray;">PS. If you want help with OpenSesame, enable "OpenSesame expert" mode in the menu. That will give me access to the OpenSesame documentation.</small>
Let\'s get started! What would like you to disuss?
'''
# The default title of a new conversation
default_conversation_title = 'New conversation'
Expand Down
3 changes: 2 additions & 1 deletion heymans/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
username = StringField('Username (from forum.cogsci.nl)',
validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
submit = SubmitField('Log In')
4 changes: 4 additions & 0 deletions heymans/templates/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<div id="page-notification">
<i class="fa fa-info-circle" aria-hidden="true"></i>
Sigmund is currently in closed beta and only available for selected forum accounts
</div>
<div id="header-bar">
<img src='/static/sofa.png' id="header-logo">
</div>
15 changes: 15 additions & 0 deletions heymans/templates/stylesheet.css.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,21 @@ a:visited {
border-radius: 4px;
}

.message-info {
margin-bottom: 10px;
font-size: .8em;
color: #607D8B;
}

#page-notification {
border-radius: 4px;
color: #fff;
background-color: #00796b;
padding: 10px;
margin: 0px 38px 10px 38px;
font-size: .8em;
}

.message-user {
color: #00796b;
}
Expand Down

0 comments on commit 2b1df3e

Please sign in to comment.