service-streamer
service-streamer copied to clipboard
Redis with auth
As of now, the code doesn't seem to support redis with password. It would be really helpful in production use cases.
@absaravanan 你好,请问你这个redis是怎么部署的?是把redis_worker_example.py中的代码写到flask_example.py中去吗? from service_streamer import run_redis_workers_forever from bert_model import ManagedBertModel
if name == "main": run_redis_workers_forever(ManagedBertModel, 64, 0.1, worker_num=4, cuda_devices=(0, 1, 2, 3))
然后运行gunicorn -c redis_streamer_gunicorn.py flask_example:app?