CarlosMalaga commited on
Commit
63a4e00
1 Parent(s): 70a5d22

Update relik/common/utils.py

Browse files
Files changed (1) hide show
  1. relik/common/utils.py +2 -2
relik/common/utils.py CHANGED
@@ -418,12 +418,12 @@ def from_cache(
418
  :obj:`Path`: Path to the cached file.
419
  """
420
 
421
- url_or_filename = model_name_or_path_resolver(url_or_filename)
422
 
423
  if cache_dir is None:
424
  cache_dir = SAPIENZANLP_CACHE_DIR
425
 
426
- if file_exists(url_or_filename):
427
  logger.info(f"{url_or_filename} is a local path or file")
428
  output_path = url_or_filename
429
  elif is_remote_url(url_or_filename):
 
418
  :obj:`Path`: Path to the cached file.
419
  """
420
 
421
+ # url_or_filename = model_name_or_path_resolver(url_or_filename)
422
 
423
  if cache_dir is None:
424
  cache_dir = SAPIENZANLP_CACHE_DIR
425
 
426
+ if file_exists(url_or_filename) or True:
427
  logger.info(f"{url_or_filename} is a local path or file")
428
  output_path = url_or_filename
429
  elif is_remote_url(url_or_filename):