This repository was archived by the owner on May 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from daita .dashboard import dashboard
44from daita .footer import footer
55
6- parser = argparse .ArgumentParser (description = "Optional app description" )
7- parser .add_argument ("--dir" , type = str , help = "A required integer positional argument" )
6+ parser = argparse .ArgumentParser (
7+ description = "Upload images via DAITA's official easy-to-use Python library."
8+ )
9+ parser .add_argument ("--dir" , type = str , help = "The root directory path for the images." )
810parser .add_argument (
9- "--daita_token" , type = str , help = "A required integer positional argument "
11+ "--daita_token" , type = str , help = "User access token for the DAITA platform. "
1012)
1113args = parser .parse_args ()
1214dir = args .dir
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def dashboard(daita_token, dir):
113113 imagefiles , compressfiles = listAllFilesInDirectory (dir )
114114
115115 if len (imagefiles ) == 0 and len (compressfiles ) == 0 :
116- print ("Folder is empty; please select again!" )
116+ print ("Folder is empty, please select again!" )
117117 footer ()
118118
119119 if len (imagefiles ) > 0 and len (compressfiles ) == 0 :
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def UploadUpdate(filesnames):
6969 }
7070 preSignUrlResp = requests .post (endpointUploadUpdate , json = payload )
7171 if preSignUrlResp .status_code != 200 :
72- print ("Something went wrong sorry, please check again" )
72+ print ("Something went wrong sorry, please check again! " )
7373 print (preSignUrlResp .text )
7474 footer ()
7575 return
@@ -163,7 +163,7 @@ def listen(q):
163163 t1 .start ()
164164 numberFileTotal = len (filenames )
165165 print (f"Total File: { numberFileTotal } " )
166- print ("STARTING UPLOAD" )
166+ print ("STARTING UPLOAD... " )
167167 currentFileCompleted = 0
168168 numFileCompleted = 0
169169 with tqdm (total = numberFileTotal , file = sys .stdout ) as pbar :
You can’t perform that action at this time.
0 commit comments