acecalisto3 commited on
Commit
c1beef4
·
verified ·
1 Parent(s): 46b6e89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -104,8 +104,15 @@ def display_workspace_projects():
104
 
105
  def display_chat_history():
106
  st.subheader("Chat History")
107
- for message in st.session_state.chat_history:
108
- st.text(message)
 
 
 
 
 
 
 
109
 
110
  def run_autonomous_build(selected_agents: List[str], project_name: str):
111
  st.info("Starting autonomous build process...")
 
104
 
105
  def display_chat_history():
106
  st.subheader("Chat History")
107
+ html_string = ""
108
+ for idx, message in enumerate(st.session_state.chat_history):
109
+ if idx % 2 == 0:
110
+ role = "User:"
111
+ else:
112
+ role = "Assistant:"
113
+ html_string += f"<p>{role}</p>"
114
+ html_string += f"<p>{message}</p>"
115
+ st.markdown(html_string, unsafe_allow_html=True)
116
 
117
  def run_autonomous_build(selected_agents: List[str], project_name: str):
118
  st.info("Starting autonomous build process...")