Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
tonyshark
/
ml_test
like
0
Model card
Files
Files and versions
Community
main
ml_test
/
lycoris
/
utils
/
preset.py
tonyshark
Upload 132 files
cc69848
verified
2 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
181 Bytes
import
toml
def
read_preset
(
preset
):
try
:
return
toml.load(preset)
except
Exception
as
e:
print
(
"Error: cannot read preset file. "
, e)
return
None