Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Aniket025
GitHub Repository: Aniket025/Medical-Prescription-OCR
Path: blob/master/Model-5/ocr/viz.pyc
427 views
�
j7�Zc@s,ddlmZdddddd�ZdS(i����(tprint_functiontii(t*c
Cs�|d7}dt|�djd|t|��}t|||�}||d||}	td||	||fdd�||kr�t�nd	S(
s�
    Call in a loop to create terminal progress bar
    @params:
        iteration   - Required  : current iteration (Int)
        total       - Required  : total iterations (Int)
        prefix      - Optional  : prefix string (Str)
        suffix      - Optional  : suffix string (Str)
        decimals    - Optional  : positive number of decimals in percent complete (Int)
        length      - Optional  : character length of bar (Int)
        fill        - Optional  : bar fill character (Str)
    is{0:.sf}idt-s
%s |%s| %s%% %stends
N(tstrtformattfloattinttprint(
t	iterationttotaltprefixtsuffixtdecimalstlengthtfilltpercenttfilledLengthtbar((sO/Users/Piyush_Jena/Documents/Opensoft/spell_correction/test_software/ocr/viz.pytprintProgressBars
+ N(t
__future__RR(((sO/Users/Piyush_Jena/Documents/Opensoft/spell_correction/test_software/ocr/viz.pyt<module>s