Spaces:
Sleeping
Sleeping
Upload myinfer_latest.py
Browse files- myinfer_latest.py +1 -1
myinfer_latest.py
CHANGED
@@ -197,7 +197,7 @@ def api_convert_voice():
|
|
197 |
# Calculate audio length in minutes
|
198 |
audio_length_minutes = len(audio) / 60000.0 # pydub returns length in milliseconds
|
199 |
|
200 |
-
if audio_length_minutes >
|
201 |
return jsonify({"error": "Audio length exceeds 3 minutes"}), 400
|
202 |
|
203 |
#created_files = []
|
|
|
197 |
# Calculate audio length in minutes
|
198 |
audio_length_minutes = len(audio) / 60000.0 # pydub returns length in milliseconds
|
199 |
|
200 |
+
if audio_length_minutes > 5:
|
201 |
return jsonify({"error": "Audio length exceeds 3 minutes"}), 400
|
202 |
|
203 |
#created_files = []
|