From c0327c5b26cf45432183ffaaccce56098eaada22 Mon Sep 17 00:00:00 2001 From: Tom Edwards <edwardstj1@cardiff.ac.uk> Date: Mon, 17 Jun 2024 10:33:35 +0100 Subject: [PATCH] Work towards USAS --- main.py | 1 + requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/main.py b/main.py index e18df13..a30a228 100644 --- a/main.py +++ b/main.py @@ -22,6 +22,7 @@ def test(): @app.route('/ner', methods=['POST']) def ner(): request_data = request.get_json() + print(request_data) page = request_data['page'] result = get_ner_for_data(page) return result diff --git a/requirements.txt b/requirements.txt index aacc856..34cc53c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ transformers~=4.41.2 ckip-transformers~=0.3.4 flask-cors~=4.0.1 spacy~=3.7.4 +googletrans ~=3.1.0a0 \ No newline at end of file -- GitLab