Kvikontent commited on
Commit
eb07f87
1 Parent(s): 7af036e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,10 +21,10 @@ st.markdown("Get Incredible results by mixing :blue-background[Facebook's MusicG
21
  prompt = st.text_input("Enter your prompt/idea/few words")
22
  #num = st.select_slider("Choose number of audio compositions to generate", options=["1", "2", "3", "4"])
23
  if st.button("Generate"):
24
- upd_prompt = query_gpt("inputs": f"Extend this prompt for music generation, add professionality, make it more beautiful to get better results: {prompt}")
25
  if upd_prompt:
26
  st.markdown(f":blue-background[GPT] updated your prompt! Here it is: **{upd_prompt}**")
27
- audio_bytes = query_aud("inputs": upd_prompt)
28
  if audio_bytes:
29
  audio = st.audio(audio_bytes)
30
  st.markdown(":green[Audio Generated Successfully!]")
 
21
  prompt = st.text_input("Enter your prompt/idea/few words")
22
  #num = st.select_slider("Choose number of audio compositions to generate", options=["1", "2", "3", "4"])
23
  if st.button("Generate"):
24
+ upd_prompt = query_gpt({"inputs": f"Extend this prompt for music generation, add professionality, make it more beautiful to get better results: {prompt}"})
25
  if upd_prompt:
26
  st.markdown(f":blue-background[GPT] updated your prompt! Here it is: **{upd_prompt}**")
27
+ audio_bytes = query_aud({"inputs": upd_prompt})
28
  if audio_bytes:
29
  audio = st.audio(audio_bytes)
30
  st.markdown(":green[Audio Generated Successfully!]")