Skip to content

Commit 2f27ce8

Browse files
committed
Style fix to make black happy
1 parent 13fd97f commit 2f27ce8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

roboflow/core/version.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,19 @@ def deploy(self, model_type: str, model_path: str) -> None:
348348
with open(os.path.join(model_path + "model_artifacts.json", "w")) as fp:
349349
json.dump(model_artifacts, fp)
350350

351-
torch.save(model["model"].state_dict(), os.path.join(model_path + "state_dict.pt"))
351+
torch.save(
352+
model["model"].state_dict(), os.path.join(model_path + "state_dict.pt")
353+
)
352354

353355
lista_files = [
354356
"results.csv",
355357
"results.png",
356358
"model_artifacts.json",
357359
"state_dict.pt",
358360
]
359-
with zipfile.ZipFile(os.path.join(model_path + "roboflow_deploy.zip", "w")) as zipMe:
361+
with zipfile.ZipFile(
362+
os.path.join(model_path + "roboflow_deploy.zip", "w")
363+
) as zipMe:
360364
for file in lista_files:
361365
zipMe.write(
362366
os.path.join(model_path + file),
@@ -379,7 +383,8 @@ def deploy(self, model_type: str, model_path: str) -> None:
379383
return
380384

381385
res = requests.put(
382-
res.json()["url"], data=open(os.path.join(model_path + "roboflow_deploy.zip", "rb"))
386+
res.json()["url"],
387+
data=open(os.path.join(model_path + "roboflow_deploy.zip", "rb")),
383388
)
384389
try:
385390
res.raise_for_status()

0 commit comments

Comments
 (0)