MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / is_valid_url

Function is_valid_url

diffusers/src/diffusers/loaders/single_file_utils.py:286–291  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

284
285
286def is_valid_url(url):
287 result = urlparse(url)
288 if result.scheme and result.netloc:
289 return True
290
291 return False
292
293
294def _extract_repo_id_and_weights_name(pretrained_model_name_or_path):

Callers 2

fetch_original_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected