Spaces:
Running
Running
Upload myinfer_latest.py
Browse files- myinfer_latest.py +3 -3
myinfer_latest.py
CHANGED
@@ -132,12 +132,12 @@ def api_convert_voice():
|
|
132 |
return jsonify({"error": "Too many requests, please try again later"}), 429
|
133 |
try:
|
134 |
|
135 |
-
if session.get('submitted'):
|
136 |
-
|
137 |
|
138 |
# Process the form here...
|
139 |
# Set the flag indicating the form has been submitted
|
140 |
-
session['submitted'] = True
|
141 |
print(request.form)
|
142 |
print(request.files)
|
143 |
spk_id = request.form['spk_id']+'.pth'
|
|
|
132 |
return jsonify({"error": "Too many requests, please try again later"}), 429
|
133 |
try:
|
134 |
|
135 |
+
#if session.get('submitted'):
|
136 |
+
# return jsonify({"error": "Form already submitted"}), 400
|
137 |
|
138 |
# Process the form here...
|
139 |
# Set the flag indicating the form has been submitted
|
140 |
+
#session['submitted'] = True
|
141 |
print(request.form)
|
142 |
print(request.files)
|
143 |
spk_id = request.form['spk_id']+'.pth'
|