Spaces:
Running
Running
Phoenixak99
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from io import BytesIO
|
|
8 |
from tempfile import NamedTemporaryFile
|
9 |
from xmlrpc.client import Binary
|
10 |
import jwt
|
|
|
11 |
import numpy as np
|
12 |
import requests
|
13 |
import scipy
|
@@ -463,10 +464,10 @@ def load_and_play_generated_audio(response):
|
|
463 |
if st.button("Generate Audio"):
|
464 |
if genre and energy_level and description and tempo:
|
465 |
generate_audio(genre, energy_level, tempo, description, duration)
|
466 |
-
|
|
|
467 |
st.info("Description field is required.")
|
468 |
|
469 |
-
|
470 |
# Post-processing options
|
471 |
st.header("Post-processing Options")
|
472 |
|
|
|
8 |
from tempfile import NamedTemporaryFile
|
9 |
from xmlrpc.client import Binary
|
10 |
import jwt
|
11 |
+
|
12 |
import numpy as np
|
13 |
import requests
|
14 |
import scipy
|
|
|
464 |
if st.button("Generate Audio"):
|
465 |
if genre and energy_level and description and tempo:
|
466 |
generate_audio(genre, energy_level, tempo, description, duration)
|
467 |
+
|
468 |
+
if description == "":
|
469 |
st.info("Description field is required.")
|
470 |
|
|
|
471 |
# Post-processing options
|
472 |
st.header("Post-processing Options")
|
473 |
|