Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ def get_training_info(audio_file):
|
|
16 |
"""Determine training parameters based on the duration of the audio file."""
|
17 |
try:
|
18 |
if not audio_file:
|
19 |
-
|
|
|
20 |
|
21 |
duration = get_audio_duration(audio_file)
|
22 |
with wave.open(audio_file, 'rb') as audio:
|
|
|
16 |
"""Determine training parameters based on the duration of the audio file."""
|
17 |
try:
|
18 |
if not audio_file:
|
19 |
+
raise gr.Error("Please provide an audio file :(")
|
20 |
+
return "."
|
21 |
|
22 |
duration = get_audio_duration(audio_file)
|
23 |
with wave.open(audio_file, 'rb') as audio:
|