finish build streaming server by flask