Monke64 commited on
Commit
6360022
·
1 Parent(s): 953918c

Updated prompt

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -69,8 +69,12 @@ with c3:
69
  if st.session_state.emotion != None and st.session_state.genre != None and st.session_state.beat != None:
70
  text_output = None
71
  if st.button("Generate text description to be fed into stable diffusion"):
 
 
 
 
72
  st.caption("Text description of your music file")
73
- text_output = "This piece of music falls under the " + st.session_state.genre[0] + " genre. It is of tempo " + str(int(st.session_state.beat)) + " and evokes a sense of" + st.session_state.emotion + "."
74
  st.text(text_output)
75
  # if text_output:
76
  # if st.button("Generate image from text description"):
 
69
  if st.session_state.emotion != None and st.session_state.genre != None and st.session_state.beat != None:
70
  text_output = None
71
  if st.button("Generate text description to be fed into stable diffusion"):
72
+ if st.session_state.beat > 100:
73
+ speed = "medium and steady"
74
+ else:
75
+ speed = "slow and calm"
76
  st.caption("Text description of your music file")
77
+ text_output = "A scenic image that describes a " + speed + " pace with a feeling of " + st.session_state.emotion + "."
78
  st.text(text_output)
79
  # if text_output:
80
  # if st.button("Generate image from text description"):