Spaces:
Sleeping
Sleeping
Upload myinfer_latest.py
Browse files- myinfer_latest.py +1 -1
myinfer_latest.py
CHANGED
|
@@ -173,7 +173,7 @@ def api_convert_voice():
|
|
| 173 |
if file.filename == '':
|
| 174 |
return jsonify({"error": "No selected file"}), 400
|
| 175 |
|
| 176 |
-
if file.content_length >
|
| 177 |
return jsonify({"error": "File size exceeds 6 MB"}), 400
|
| 178 |
|
| 179 |
|
|
|
|
| 173 |
if file.filename == '':
|
| 174 |
return jsonify({"error": "No selected file"}), 400
|
| 175 |
|
| 176 |
+
if file.content_length > 10 * 1024 * 1024:
|
| 177 |
return jsonify({"error": "File size exceeds 6 MB"}), 400
|
| 178 |
|
| 179 |
|