Skip to content
Snippets Groups Projects
Commit e3de37f1 authored by Katrien Beuls's avatar Katrien Beuls
Browse files

changed port to 3600

parent b131785f
No related branches found
No related tags found
No related merge requests found
import requests import requests
r = requests.post('http://localhost:5000/predict', r = requests.post('http://localhost:3600/predict',
json=["Great", json=["Great",
"temporarily", "temporarily",
"following his visit to Japan this time", "following his visit to Japan this time",
"for coming to the studio for our interview", "for coming to the studio for our interview",
"briefly"]) "briefly"])
......
from flask import Flask, jsonify, request from flask import Flask, jsonify, request
import pickle import pickle
import spacy_sentence_bert import spacy_sentence_bert
NLP = spacy_sentence_bert.load_model('en_stsb_distilbert_base') NLP = spacy_sentence_bert.load_model('en_stsb_distilbert_base')
MODEL = pickle.load(open('model.pkl', 'rb')) MODEL = pickle.load(open('model.pkl', 'rb'))
...@@ -23,4 +23,4 @@ def predict(): ...@@ -23,4 +23,4 @@ def predict():
return jsonify(predictions) return jsonify(predictions)
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True, port=5000) app.run(debug=True, port=3600)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment