Spaces:
Sleeping
Sleeping
Commit
·
c8efbb8
1
Parent(s):
587fc82
Update api.py
Browse files
api.py
CHANGED
@@ -19,11 +19,11 @@ def index():
|
|
19 |
# Route for seeing a data
|
20 |
@app.route('/data', methods=['POST'])
|
21 |
def get_time():
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
except:
|
26 |
-
|
27 |
rois = request.form['rois'].split(',')
|
28 |
div = request.form['divisionWH'].split(',')
|
29 |
|
|
|
19 |
# Route for seeing a data
|
20 |
@app.route('/data', methods=['POST'])
|
21 |
def get_time():
|
22 |
+
|
23 |
+
file = request.files['file']
|
24 |
+
file.save(secure_filename(file.filename))
|
25 |
+
#except:
|
26 |
+
# return["Sorry something went wrong. Perhaps you did not select your image. Please try again."]
|
27 |
rois = request.form['rois'].split(',')
|
28 |
div = request.form['divisionWH'].split(',')
|
29 |
|