Blane187 commited on
Commit
0e1a6dd
1 Parent(s): 50eafc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return "Please provide an audio file."
 
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: