Closed mehadi92 closed 1 year ago
It should be waiting for input, try to run the client app
Hi, @nshmyrev When I run this client app https://github.com/alphacep/vosk-server/blob/master/websocket-gpu-batch/test.py I'm getting this error.
python test.py
Traceback (most recent call last):
File "test.py", line 26, in <module>
asyncio.run(run_test('ws://localhost:2700'))
File "/opt/conda/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/opt/conda/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
return future.result()
File "test.py", line 9, in run_test
async with websockets.connect(uri) as websocket:
File "/opt/conda/lib/python3.7/site-packages/websockets/legacy/client.py", line 642, in __aenter__
return await self
File "/opt/conda/lib/python3.7/site-packages/websockets/legacy/client.py", line 659, in __await_impl_timeout__
return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
File "/opt/conda/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/opt/conda/lib/python3.7/site-packages/websockets/legacy/client.py", line 663, in __await_impl__
_transport, _protocol = await self._create_connection()
File "/opt/conda/lib/python3.7/asyncio/base_events.py", line 971, in create_connection
', '.join(str(exc) for exc in exceptions)))
OSError: Multiple exceptions: [Errno 111] Connect call failed ('::1', 2700, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 2700)
I also the docker ps -a
and it gives me the below, which ensures the container is running in the desire port
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
16e2656686d9 58fbe8ccdeb5 "python3 ./asr_serve…" About a minute ago Up About a minute 2700/tcp amazing_williams
Since in the other issue you report about non-deterministic output were you able to run the server with different card or what?
@nshmyrev I'm able to run using this script https://github.com/alphacep/vosk-api/blob/master/python/example/test_gpu_batch.py
Hi, After using dockerfile like
FROM alphacep/kaldi-vosk-server-gpu:latest
ENV MODEL_VERSION 0.22
COPY <my GPU models> /app/model
COPY src ./app
EXPOSE 2700
WORKDIR app
CMD [ "python3", "./asr_server_gpu.py" ]
and docker-compose
version: '2'
services:
gpu-server:
build: ./
container_name: gpu-server
image: gpu-server
ports:
- 2700:2700
runtime: nvidia
environment:
- CUDA_VISIBLE_DEVICES=0
shm_size: '7gb'
ulimits:
memlock: -1
stack: 67108864
network_mode: host
Run the compose using
docker compose up
My issue is solved
Hi, I'm trying to run this example script
To do this I pull this docker image
But it stuck like this
Is there anything that I missing