Commit 81b56d6b authored by Yoann HOUPERT's avatar Yoann HOUPERT
Browse files

Revert "return all hypothese"

This reverts commit cc1aa88a.
parent cc1aa88a
......@@ -70,9 +70,7 @@ class MyClient(WebSocketClient):
#print >> sys.stderr, "JSON was:", m
if response['status'] == 0:
if 'result' in response:
#trans = response['result']['hypotheses'][0]['transcript']
trans = response['result']['hypotheses']
trans = response['result']['hypotheses'][0]['transcript']
if response['result']['final']:
#print >> sys.stderr, trans,
self.final_hyps.append(trans)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment