camenduru commited on
Commit
2f56464
·
1 Parent(s): f656f7d

Python v3.9 (#189)

Browse files
Files changed (1) hide show
  1. modules/model_loader.py +2 -2
modules/model_loader.py CHANGED
@@ -1,13 +1,13 @@
1
  import os
2
  from urllib.parse import urlparse
3
-
4
 
5
  def load_file_from_url(
6
  url: str,
7
  *,
8
  model_dir: str,
9
  progress: bool = True,
10
- file_name: str | None = None,
11
  ) -> str:
12
  """Download a file from `url` into `model_dir`, using the file present if possible.
13
 
 
1
  import os
2
  from urllib.parse import urlparse
3
+ from typing import Optional
4
 
5
  def load_file_from_url(
6
  url: str,
7
  *,
8
  model_dir: str,
9
  progress: bool = True,
10
+ file_name: Optional[str] = None,
11
  ) -> str:
12
  """Download a file from `url` into `model_dir`, using the file present if possible.
13