Spaces:
Paused
Paused
Updated prompt
Browse files
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 = "
|
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"):
|