import json

from locust import HttpUser, between, task

headers = {
    "Accept": "application/json",
    "Content-Type": "application/json"
}

# Setting up a json data package for post request.
data = {
    "queryResult": {
        "queryText": "locust"
    }
}


class WebsiteUser(HttpUser):
    wait_time = between(5, 9)

    @task(1)
    def post_to_reply(self):
        self.client.post("/model_inference", json.dumps(data), headers=headers)

48230be0c1648a4bfd0c9dae34d340d7b2272cf0
<mask token>


class WebsiteUser(HttpUser):
    <mask token>

    @task(1)
    def post_to_reply(self):
        self.client.post('/model_inference', json.dumps(data), headers=headers)

<mask token>


class WebsiteUser(HttpUser):
    wait_time = between(5, 9)

    @task(1)
    def post_to_reply(self):
        self.client.post('/model_inference', json.dumps(data), headers=headers)

<mask token>
headers = {'Accept': 'application/json', 'Content-Type': 'application/json'}
data = {'queryResult': {'queryText': 'locust'}}


class WebsiteUser(HttpUser):
    wait_time = between(5, 9)

    @task(1)
    def post_to_reply(self):
        self.client.post('/model_inference', json.dumps(data), headers=headers)

import json
from locust import HttpUser, between, task
headers = {'Accept': 'application/json', 'Content-Type': 'application/json'}
data = {'queryResult': {'queryText': 'locust'}}


class WebsiteUser(HttpUser):
    wait_time = between(5, 9)

    @task(1)
    def post_to_reply(self):
        self.client.post('/model_inference', json.dumps(data), headers=headers)

import json

from locust import HttpUser, between, task

headers = {
    "Accept": "application/json",
    "Content-Type": "application/json"
}

# Setting up a json data package for post request.
data = {
    "queryResult": {
        "queryText": "locust"
    }
}


class WebsiteUser(HttpUser):
    wait_time = between(5, 9)

    @task(1)
    def post_to_reply(self):
        self.client.post("/model_inference", json.dumps(data), headers=headers)
