From 68e0444d3ce03ae55860a539e477f43a09e7e265 Mon Sep 17 00:00:00 2001 From: lechatpito Date: Fri, 3 Oct 2014 15:06:06 -0400 Subject: [PATCH] Now working using base64 encoding --- word2vec-api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/word2vec-api.py b/word2vec-api.py index 852aa0c..f7418a6 100644 --- a/word2vec-api.py +++ b/word2vec-api.py @@ -64,10 +64,9 @@ def get(self): args = parser.parse_args() try: res = model[args['word']] - str = base64.b64encode(res) - return str + res = base64.b64encode(res) + return res except: - sys.exc_info()[0] return app = Flask(__name__)