Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
GIZ
/
chatfed_whisp
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e93edee
chatfed_whisp
/
utils
/
utils.py
leavoigt
move geojson function to utils
e93edee
26 days ago
raw
Copy download link
history
blame
237 Bytes
import
json
def
process_geojson
(
file
):
if
file
is
None
:
return
{}
try
:
with
open
(file,
'r'
, encoding=
'utf-8'
)
as
f:
return
json.load(f)
except
Exception
as
e:
return
{
"error"
:
str
(e)}