Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -104,8 +104,15 @@ def display_workspace_projects():
|
|
104 |
|
105 |
def display_chat_history():
|
106 |
st.subheader("Chat History")
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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...")
|