Skip to content

Commit

Permalink
[Minor] Update file.py (open-compass#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra-Yu authored Jan 19, 2024
1 parent 736151d commit e55a65f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlmeval/smp/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def load_tsv(f):

def download_file(url, filename=None):
import urllib.request
from tqdm import tqdm

class DownloadProgressBar(tqdm):
def update_to(self, b=1, bsize=1, tsize=None):
Expand Down Expand Up @@ -121,4 +122,4 @@ def last_modified(pth):
m_ti = time.ctime(stamp)
t_obj = time.strptime(m_ti)
t = time.strftime('%Y%m%d%H%M%S', t_obj)[2:]
return t
return t

0 comments on commit e55a65f

Please sign in to comment.