Skip to content

Commit

Permalink
fix capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Dec 11, 2023
1 parent c8ae748 commit d21c09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alfalfa_client/alfalfa_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def upload_model(self, model_path: os.PathLike) -> ModelID:
response_body = response.json()["payload"]
post_url = response_body['url']

model_id = response_body['modelID']
model_id = response_body['modelId']
form_data = OrderedDict(response_body['fields'])
form_data['file'] = ('filename', open(model_path, 'rb'))

Expand All @@ -176,7 +176,7 @@ def create_run_from_model(self, model_id: Union[ModelID, List[ModelID]], wait_fo
:returns: id of run created"""
response = self._request(f"models/{model_id}/createRun")
run_id = response.json()["payload"]["runID"]
run_id = response.json()["payload"]["runId"]

if wait_for_status:
self.wait(run_id, "ready")
Expand Down

0 comments on commit d21c09c

Please sign in to comment.