Update main.py
Browse files
main.py
CHANGED
@@ -78,7 +78,7 @@ def ocr(image: io.BytesIO) -> str:
|
|
78 |
app = Flask(__name__)
|
79 |
|
80 |
@app.route('/getans', methods=['POST'])
|
81 |
-
def
|
82 |
if 'file' not in request.files:
|
83 |
return jsonify({"status" : False, "msg" : "No file found"}), 400
|
84 |
file = request.files['file']
|
@@ -94,7 +94,7 @@ def async_task():
|
|
94 |
return jsonify({"status" : True, "ANS" : answer})
|
95 |
|
96 |
@app.route('/ocr', methods=['POST'])
|
97 |
-
def
|
98 |
if 'file' not in request.files:
|
99 |
return jsonify({"status" : False, "msg" : "No file found"}), 400
|
100 |
file = request.files['file']
|
|
|
78 |
app = Flask(__name__)
|
79 |
|
80 |
@app.route('/getans', methods=['POST'])
|
81 |
+
def gettans_task():
|
82 |
if 'file' not in request.files:
|
83 |
return jsonify({"status" : False, "msg" : "No file found"}), 400
|
84 |
file = request.files['file']
|
|
|
94 |
return jsonify({"status" : True, "ANS" : answer})
|
95 |
|
96 |
@app.route('/ocr', methods=['POST'])
|
97 |
+
def task_ocr():
|
98 |
if 'file' not in request.files:
|
99 |
return jsonify({"status" : False, "msg" : "No file found"}), 400
|
100 |
file = request.files['file']
|