Created
July 26, 2020 17:19
-
-
Save vaibhavgehani/687bfc6660d1a3721bc332bd9cba03ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @app.route('/getText',methods=['POST']) | |
| def getText(): | |
| file=request.files['file'] | |
| text = ocr_extraction(file) | |
| # print(type(text)) | |
| sentiment = predictSentiment(text) | |
| print(sentiment) | |
| return jsonify(outputText=text,predSentiment=sentiment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment