Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Adapter
/
T2I-Adapter
like
169
Runtime error
App
Files
Files
Community
19
568e177
T2I-Adapter
/
load_json.py
Adapter
first upload
fb6c2da
over 1 year ago
raw
Copy download link
history
blame
No virus
139 Bytes
import
json
def
load_json
(
path
):
with
open
(path,
'r'
,encoding =
'utf-8'
)
as
fp:
data = json.load(fp)
return
data[
'images'
]