smjain commited on
Commit
a98d932
1 Parent(s): 2eb7ca3

Upload myinfer_latest.py

Browse files
Files changed (1) hide show
  1. 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 > 3:
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 = []