Spaces:
Sleeping
Sleeping
BenBranyon
commited on
Commit
•
d60a7dd
1
Parent(s):
5d82c9c
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,8 @@ if prompt := st.chat_input("Subject of the song"):
|
|
48 |
with st.chat_message("user"):
|
49 |
st.markdown(prompt)
|
50 |
prompt = f"Write a rap in the style of the artist SUM about {prompt}"
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
st.
|
|
|
|
48 |
with st.chat_message("user"):
|
49 |
st.markdown(prompt)
|
50 |
prompt = f"Write a rap in the style of the artist SUM about {prompt}"
|
51 |
+
with st.spinner(text=f"Generating lyrics..."):
|
52 |
+
output = query(prompt)
|
53 |
+
st.session_state.messages.append({"role": "assistant", "content": output})
|
54 |
+
with st.chat_message("assistant"):
|
55 |
+
st.markdown(output)
|