Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Veda0718
/
Llava-Med
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Llava-Med
/
llava
/
eval
/
util.py
Veda0718
Upload 50 files
f268251
verified
4 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
171 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)