chore: remove warning for not support language other than english banner

This commit is contained in:
sean1832 2023-02-19 02:57:54 +11:00
parent 6a1c23962e
commit 80adf73c48

View File

@ -160,13 +160,10 @@ with st.sidebar:
with header: with header:
st.title(_('🧠GPT-Brain')) st.title(_('🧠GPT-Brain'))
st.text(_('This is my personal AI powered brain feeding my own Obsidian notes. Ask anything.')) st.text(_('This is my personal AI powered brain feeding my own Obsidian notes. Ask anything.'))
isEnglish = st.session_state['SESSION_LANGUAGE'] == 'en_US'
message(_("This is a beta version. Please [🪲report bugs](") + util.read_json_at(MANIFEST, 'bugs') + _( message(_("This is a beta version. Please [🪲report bugs](") + util.read_json_at(MANIFEST, 'bugs') + _(
") if you find any.")) ") if you find any."))
message(_('This version does not allow for inquiries in languages other than English.'), condition=not isEnglish)
def execute_brain(q): def execute_brain(q):
# log question # log question