Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Adapter
/
T2I-Adapter
like
169
Runtime error
App
Files
Files
Community
19
Fetching metadata from the HF Docker repository...
refs/pr/3
T2I-Adapter
/
load_json.py
Adapter
first upload
fb6c2da
over 3 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
139 Bytes
import
json
def
load_json
(
path
):
with
open
(path,
'r'
,encoding =
'utf-8'
)
as
fp:
data = json.load(fp)
return
data[
'images'
]