BenBranyon commited on
Commit
af4b0d5
1 Parent(s): bbd86c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -39,8 +39,10 @@ for message in st.session_state.messages:
39
 
40
  if prompt := st.chat_input("Subject of the song"):
41
  st.session_state.messages.append({"role": "user", "content": prompt})
42
- st.messages.chat_message("user").write(prompt)
 
43
  prompt = f"Write a rap in the style of the artist SUM about {prompt}"
44
  output = query(prompt)
45
  st.session_state.messages.append({"role": "assistant", "content": output})
46
- st.messages.chat_message("assistant").write(output)
 
 
39
 
40
  if prompt := st.chat_input("Subject of the song"):
41
  st.session_state.messages.append({"role": "user", "content": prompt})
42
+ with st.chat_message("user"):
43
+ st.markdown(prompt)
44
  prompt = f"Write a rap in the style of the artist SUM about {prompt}"
45
  output = query(prompt)
46
  st.session_state.messages.append({"role": "assistant", "content": output})
47
+ with st.chat_message("assistant"):
48
+ st.markdown(output)