Spaces:
Runtime error
Runtime error
mrfakename
commited on
Commit
•
6c019c7
1
Parent(s):
44c6ab3
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def serve_wav():
|
|
61 |
text = request.json['text']
|
62 |
else:
|
63 |
text = request.form['text'].strip()
|
64 |
-
if not
|
65 |
error_response = {'error': 'Empty text. Please ensure "text" in not empty.'}
|
66 |
return jsonify(error_response), 400
|
67 |
texts = split_and_recombine_text(text)
|
|
|
61 |
text = request.json['text']
|
62 |
else:
|
63 |
text = request.form['text'].strip()
|
64 |
+
if not text.strip():
|
65 |
error_response = {'error': 'Empty text. Please ensure "text" in not empty.'}
|
66 |
return jsonify(error_response), 400
|
67 |
texts = split_and_recombine_text(text)
|