tests/core/test_agent.py
async def model(request):
        """Simple HTTP model server responding with a trained model."""

        if model_hash == request.headers.get("If-None-Match"):
            return response.text("", 204)

        app.number_of_model_requests += 1

        return await response.file_stream(
            location=model_path,
            headers={'ETag': model_hash,
                     'filename': model_path},
            mime_type='application/zip')
Simple HTTP model server responding with a trained model.
Simple HTTP model server responding with a trained model.
Simple HTTP model server responding with a trained model .
async def model(request):
        if model_hash == request.headers.get("If-None-Match"):
            return response.text("", 204)
        app.number_of_model_requests += 1
        return await response.file_stream(
            location=model_path,
            headers={'ETag': model_hash,
                     'filename': model_path},
            mime_type='application/zip')
async def model ( request ) : if model_hash == request . headers . get ( "If-None-Match" ) : return response . text ( "" , 204 ) app . number_of_model_requests += 1 return await response . file_stream ( location = model_path , headers = { 'ETag' : model_hash , 'filename' : model_path } , mime_type = 'application/zip' )
Simple HTTP model server responding with a trained model.
Simple HTTP model server responding with a trained model .
"""Simple HTTP model server responding with a trained model."""
request