Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
linstt-offline-decoding
Commits
de8d1ada
Commit
de8d1ada
authored
Jan 15, 2018
by
Rudy BARAGLIA
Browse files
Modified API
parent
d0935d4b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
3 deletions
+17
-3
modules/server/master_server.py
modules/server/master_server.py
+1
-1
modules/server/server.cfg
modules/server/server.cfg
+1
-1
modules/worker_offline/.dockerignore
modules/worker_offline/.dockerignore
+10
-0
modules/worker_offline/worker_offline.py
modules/worker_offline/worker_offline.py
+1
-1
tests/test.sh
tests/test.sh
+4
-0
No files found.
modules/server/master_server.py
View file @
de8d1ada
...
...
@@ -140,7 +140,7 @@ class DecodeRequestHandler(tornado.web.RequestHandler):
@
gen
.
coroutine
def
receive_response
(
self
,
message
):
logging
.
debug
(
"Forwarding transcription to client"
)
self
.
add_header
(
'resul
t'
,
message
)
self
.
write
({
'transcrip
t'
:
message
}
)
self
.
set_status
(
200
,
"Transcription succeded"
)
self
.
application
.
num_requests_processed
+=
1
self
.
waitResponse
.
notify
()
...
...
modules/server/server.cfg
View file @
de8d1ada
...
...
@@ -2,7 +2,7 @@
listening_port : 8888
keep_temp_files : false
max_waiting_time : 10
debug :
fals
e
debug :
tru
e
[machine_params]
temp_file_location : ./temp_files/
\ No newline at end of file
modules/worker_offline/.dockerignore
0 → 100644
View file @
de8d1ada
tools/
trans/
wavs/
client/
README.md
start_docker.sh
.git*
scripts/steps
scripts/utils
systems/
\ No newline at end of file
modules/worker_offline/worker_offline.py
View file @
de8d1ada
...
...
@@ -60,7 +60,7 @@ class WorkerWebSocket(WebSocketClient):
# Check result
if
os
.
path
.
isfile
(
'trans/decode_'
+
self
.
fileName
+
'.log'
):
with
open
(
'trans/decode_'
+
self
.
fileName
+
'.log'
,
'r'
)
as
resultFile
:
result
=
resultFile
.
read
()
result
=
resultFile
.
read
()
.
strip
()
logging
.
debug
(
"Transcription is: %s"
%
result
)
self
.
send_result
(
result
)
else
:
...
...
tests/test.sh
0 → 100644
View file @
de8d1ada
#/bin/bash
cd
$PWD
./module/server/master_server.py
./modules/worker_offline/start_worker.sh
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment