diff --git a/README.md b/README.md index e6f3be7..0402eac 100644 --- a/README.md +++ b/README.md @@ -87,11 +87,11 @@ The following snippet shows how to use the worker based candidate generation usi ``` python import time -# create the proposal in the database +# create the proposal in the database response = requests.post(url=f"{URL}/proposals", json=payload.model_dump(), headers=HEADERS) id = json.loads(response.content)["id"] -# poll the state of the proposal +# poll the state of the proposal def get_state(id:int): return requests.get(url=f"{URL}proposals/{id}/state", headers=HEADERS).json() diff --git a/requirements.txt b/requirements.txt index 0a801cf..a3f18c3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,4 @@ uvicorn fastapi pytest requests -tinydb \ No newline at end of file +tinydb