-
Notifications
You must be signed in to change notification settings - Fork 0
/
req_res.py
6 lines (5 loc) · 1.5 KB
/
req_res.py
1
2
3
4
5
6
import json
import requests
dict_data = {"articles":["England are the kings of the set piece so far at this World Cup and it is something to be proud of.After two games we have scored more goals from free kicks or corners than anyone else at this tournament with four or five if you include Harry Kane second penalty against Panama, which came after he was fouled at a corner.Gareth Southgates side have also managed more attempts at goal from set pieces than anyone else in Russia 16 in the first two matches.","Brexit negotiations cannot go on with a divided British cabinet, Jean Claude Juncker has said, as European leaders expressed concern that they do not know who is in charge.With major figures in the UK government still at odds on key issues, the European commission president said Brussels desperately needed a clear, coherent vision for the future. At a summit of EU leaders in Brussels, Juncker told reporters I dont have to lecture Theresa May, but I would like our British friends to make clear their position.We cannot go on to live with a split cabinet. They have to say what they want and we will respond to that.May is due to address EU leaders at a dinner on Thursday evening, where she will sketch out her plans for the coming days. She will hold a meeting of her divided cabinet at Chequers on Friday, before the intended publication of a white paper on Britain future relationship with the EU the following week."]}
res = requests.post('http://0.0.0.0:5000/predict', data=json.dumps(dict_data))
print(res.json())