Zekun Wu commited on
Commit
ee31c61
·
1 Parent(s): 5f01d2e
Files changed (1) hide show
  1. model_util.py +0 -1
model_util.py CHANGED
@@ -73,7 +73,6 @@ def calculate_flops_in_hugging_space(model_name: str,
73
 
74
  def extract_from_url(name: str):
75
  "Checks if `name` is a URL, and if so converts it to a model name"
76
- is_url = False
77
  try:
78
  result = urlparse(name)
79
  is_url = all([result.scheme, result.netloc])
 
73
 
74
  def extract_from_url(name: str):
75
  "Checks if `name` is a URL, and if so converts it to a model name"
 
76
  try:
77
  result = urlparse(name)
78
  is_url = all([result.scheme, result.netloc])