@@ -495,7 +495,7 @@ def deploy(self, model_type: str, model_path: str, filename: str = "weights/best
495495 ]
496496
497497 if not any (supported_model in model_type for supported_model in supported_models ):
498- raise (ValueError (f"Model type { model_type } not supported. Supported models are" f" { supported_models } " ))
498+ raise (ValueError (f"Model type { model_type } not supported. Supported models are { supported_models } " ))
499499
500500 if model_type .startswith (("paligemma" , "paligemma2" , "florence-2" )):
501501 if any (model in model_type for model in ["paligemma" , "paligemma2" , "florence-2" ]):
@@ -648,7 +648,7 @@ def deploy(self, model_type: str, model_path: str, filename: str = "weights/best
648648 )
649649 else :
650650 if file in ["model_artifacts.json" , "state_dict.pt" ]:
651- raise (ValueError (f"File { file } not found. Please make sure to provide a" " valid model path." ))
651+ raise (ValueError (f"File { file } not found. Please make sure to provide a valid model path." ))
652652
653653 self .upload_zip (model_type , model_path )
654654
@@ -761,7 +761,7 @@ def deploy_yolonas(self, model_type: str, model_path: str, filename: str = "weig
761761 )
762762 else :
763763 if file in ["model_artifacts.json" , filename ]:
764- raise (ValueError (f"File { file } not found. Please make sure to provide a" " valid model path." ))
764+ raise (ValueError (f"File { file } not found. Please make sure to provide a valid model path." ))
765765
766766 self .upload_zip (model_type , model_path )
767767
@@ -791,8 +791,7 @@ def upload_zip(self, model_type: str, model_path: str, model_file_name: str = "r
791791
792792 if self .public :
793793 print (
794- "View the status of your deployment at:"
795- f" { APP_URL } /{ self .workspace } /{ self .project } /{ self .version } "
794+ f"View the status of your deployment at: { APP_URL } /{ self .workspace } /{ self .project } /{ self .version } "
796795 )
797796 print (
798797 "Share your model with the world at:"
@@ -801,8 +800,7 @@ def upload_zip(self, model_type: str, model_path: str, model_file_name: str = "r
801800 )
802801 else :
803802 print (
804- "View the status of your deployment at:"
805- f" { APP_URL } /{ self .workspace } /{ self .project } /{ self .version } "
803+ f"View the status of your deployment at: { APP_URL } /{ self .workspace } /{ self .project } /{ self .version } "
806804 )
807805
808806 except Exception as e :
@@ -824,7 +822,7 @@ def bar_progress(current, total, width=80):
824822 progress_message = (
825823 "Downloading Dataset Version Zip in "
826824 f"{ location } to { format } : "
827- f"{ current / total * 100 :.0f} % [{ current } / { total } ] bytes"
825+ f"{ current / total * 100 :.0f} % [{ current } / { total } ] bytes"
828826 )
829827 sys .stdout .write ("\r " + progress_message )
830828 sys .stdout .flush ()
@@ -923,7 +921,7 @@ def __get_format_identifier(self, format):
923921
924922 if not format :
925923 raise RuntimeError (
926- "You must pass a format argument to version.download() or define a" " model in your Roboflow object"
924+ "You must pass a format argument to version.download() or define a model in your Roboflow object"
927925 )
928926
929927 friendly_formats = {"yolov5" : "yolov5pytorch" , "yolov7" : "yolov7pytorch" }
0 commit comments