Skip to content

Commit

Permalink
Have progress meter actually reach 100% (#14) (#8)
Browse files Browse the repository at this point in the history
* Have progress meter actually reach 100%

* version number
  • Loading branch information
rachellim authored Mar 19, 2021
1 parent 4e38179 commit a57b587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openai/upload_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def progress(total, desc):
meter = tqdm.tqdm(total=total, unit_scale=True, desc=desc)

def incr(progress):
meter.n = progress
if progress == total:
meter.close()
else:
meter.n = progress
meter.refresh()

return incr
Expand Down
2 changes: 1 addition & 1 deletion openai/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.6.0"
VERSION = "0.6.1"

0 comments on commit a57b587

Please sign in to comment.