BenBranyon commited on
Commit
d60a7dd
1 Parent(s): 5d82c9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- output = query(prompt)
52
- st.session_state.messages.append({"role": "assistant", "content": output})
53
- with st.chat_message("assistant"):
54
- st.markdown(output)
 
 
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)