Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Adapter
/
T2I-Adapter
like
170
Runtime error
App
Files
Files
Community
19
742c88e
T2I-Adapter
/
load_json.py
Adapter
first upload
fb6c2da
almost 2 years ago
raw
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'
]