Spaces:
Sleeping
Sleeping
BenBranyon
commited on
Commit
•
af4b0d5
1
Parent(s):
bbd86c5
Update app.py
Browse files
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.
|
|
|
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.
|
|
|
|
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)
|