smjain commited on
Commit
c445b9f
1 Parent(s): 402de54

Upload myinfer_latest.py

Browse files
Files changed (1) hide show
  1. 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
- 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'
 
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'