From ec3d7fc06537d3672acb4acfb18c559a793c6821 Mon Sep 17 00:00:00 2001 From: nl8590687 <3210346136@qq.com> Date: Thu, 5 Jul 2018 16:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86asrserver=E5=88=87=E6=8D=A2=E5=88=B0sp?= =?UTF-8?q?eechmodel25=EF=BC=8C=E5=B9=B6=E5=A2=9E=E5=BC=BA=E9=B2=81?= =?UTF-8?q?=E6=A3=92=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asrserver.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/asrserver.py b/asrserver.py index c3fea57..d97251e 100644 --- a/asrserver.py +++ b/asrserver.py @@ -8,18 +8,21 @@ import http.server import urllib import keras -from SpeechModel24 import ModelSpeech +from SpeechModel25 import ModelSpeech from LanguageModel import ModelLanguage datapath = 'data/' modelpath = 'model_speech/' ms = ModelSpeech(datapath) -ms.LoadModel(modelpath + 'm24/speech_model24_e_0_step_411000.model') +ms.LoadModel(modelpath + 'm25/speech_model25_e_0_step_545500.model') ml = ModelLanguage('model_language') ml.LoadModel() class TestHTTPHandle(http.server.BaseHTTPRequestHandler): + def setup(self): + self.request.settimeout(10) + http.server.BaseHTTPRequestHandler.setup(self) def _set_response(self): self.send_response(200)