Zekun Wu commited on
Commit
13fddfe
·
2 Parent(s): d9565d9 ae7b140
Files changed (1) hide show
  1. model_util.py +0 -2
model_util.py CHANGED
@@ -1,6 +1,5 @@
1
  import gradio as gr
2
  import torch
3
-
4
  from urllib.parse import urlparse
5
  from huggingface_hub.utils import GatedRepoError
6
  from huggingface_hub.utils import RepositoryNotFoundError
@@ -114,7 +113,6 @@ def get_mode_from_hf(model_name: str, library: str, access_token: str):
114
  raise gr.Error(
115
  f"Model `{model_name}` does not have any library metadata on the Hub, please manually select a library_name to use (such as `transformers`)"
116
  )
117
-
118
  except ImportError:
119
  # hacky way to check if it works with `trust_remote_code=False`
120
  model = create_empty_model(
 
1
  import gradio as gr
2
  import torch
 
3
  from urllib.parse import urlparse
4
  from huggingface_hub.utils import GatedRepoError
5
  from huggingface_hub.utils import RepositoryNotFoundError
 
113
  raise gr.Error(
114
  f"Model `{model_name}` does not have any library metadata on the Hub, please manually select a library_name to use (such as `transformers`)"
115
  )
 
116
  except ImportError:
117
  # hacky way to check if it works with `trust_remote_code=False`
118
  model = create_empty_model(