Skip to content

Commit

Permalink
Merge pull request #24 from flepied/bug23
Browse files Browse the repository at this point in the history
ui: display the question from the user before the answer from the agent
  • Loading branch information
flepied authored Aug 25, 2023
2 parents 44d0517 + e282057 commit 6260ac3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "second-brain-agent"
version = "0.3.0"
version = "0.2.1"
description = "Second Brain AI Agent"
authors = ["Frederic Lepied <[email protected]>"]
license = "GPL 3.0"
Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions second_brain_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
import streamlit as st
from dotenv import load_dotenv

from htmlTemplates import css, user_template
from htmlTemplates import bot_template, css, user_template
from lib import Agent


def handle_userinput(user_question):
"Handle the input from the user as a question to the LLM"
response = st.session_state.agent.html_question(user_question)
st.write(
user_template.replace("{{MSG}}", response),
user_template.replace("{{MSG}}", user_question),
bot_template.replace("{{MSG}}", response),
unsafe_allow_html=True,
)

Expand Down

0 comments on commit 6260ac3

Please sign in to comment.