Skip to content

Commit

Permalink
Now working using base64 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
lechatpito committed Oct 3, 2014
1 parent ff69909 commit 68e0444
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions word2vec-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 68e0444

Please sign in to comment.