Blane187 commited on
Commit
a1284fc
1 Parent(s): 72f54df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def get_training_info(audio_file):
37
 
38
  return 'Duration is not within the specified range.'
39
  except ValueError as e:
40
- return gr.Errors(f"{str(e)}")
41
  return str(e)
42
  with gr.Blocks(theme=gr.themes.Base(primary_hue="sky", secondary_hue="blue"), title="RVC TRAINING HELPER") as demo:
43
  with gr.Tab("Main Settings"):
 
37
 
38
  return 'Duration is not within the specified range.'
39
  except ValueError as e:
40
+ raise gr.Errors(f"{str(e)}")
41
  return str(e)
42
  with gr.Blocks(theme=gr.themes.Base(primary_hue="sky", secondary_hue="blue"), title="RVC TRAINING HELPER") as demo:
43
  with gr.Tab("Main Settings"):