Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Dhruv-Ty
/
CRAX
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
CRAX
/
medrax
/
llava
/
eval
/
util.py
Dhruv-Ty
initial commit
cb3a670
18 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
178 Bytes
import
json
def
load_file_jsonl
(
path
):
with
open
(path)
as
f:
return
[json.loads(row)
for
row
in
f]
def
get_avg
(
x
):
return
sum
([
float
(y)
for
y
in
x]) /
len
(x)