Spaces:
Sleeping
Sleeping
Kvikontent
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ if subm_btn and img_prompt is not None:
|
|
35 |
|
36 |
output = query(image_bytes)
|
37 |
prompt_gpt = output[0]['generated_text']
|
38 |
-
prompt = Client.create_completion("gpt3", "Write a
|
39 |
st.image(image_bytes, caption=f'Generated prompt for input image - "{prompt}"')
|
40 |
music = generate_audio(prompt)
|
41 |
st.success('Music Generated Successfully!', icon="✅")
|
|
|
35 |
|
36 |
output = query(image_bytes)
|
37 |
prompt_gpt = output[0]['generated_text']
|
38 |
+
prompt = Client.create_completion("gpt3", "Write a prompt a to generate music from this: " + prompt_gpt)
|
39 |
st.image(image_bytes, caption=f'Generated prompt for input image - "{prompt}"')
|
40 |
music = generate_audio(prompt)
|
41 |
st.success('Music Generated Successfully!', icon="✅")
|