Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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"):
|