Spaces:
Build error
Build error
huangshiyu commited on
Commit ·
1288c9d
1
Parent(s): c571a53
update
Browse filesFiles changed (2)
- app.py+1-1
- compute_accuracy.py+2-2
206 unmodified lines207208209210211212213206 unmodified lineslabel="Model name", placeholder="CogVLM2-Video")revision_name_textbox = gr.Textbox(label="Revision Model Name", placeholder="CogVLM2-Video")with gr.Column():206 unmodified lines207208209210211212213206 unmodified lineslabel="Model name", placeholder="CogVLM2-Video")revision_name_textbox = gr.Textbox(label="Revision Model Name", placeholder="")with gr.Column():
2 unmodified lines34567892 unmodified lines121314151617182 unmodified linesfrom collections import defaultdictdef compute_accuracy(model_answers: dict, video_meta_file: str):total_qa_num = 0total_answered_num = 0right_num = 02 unmodified linescategory_total = defaultdict(float)category_acc = defaultdict(float)with jsonlines.open(video_meta_file) as reader:video_meta = list(reader)2 unmodified lines34567892 unmodified lines121314151617182 unmodified linesfrom collections import defaultdictdef compute_accuracy(input_file: bytes, video_meta_file: str):total_qa_num = 0total_answered_num = 0right_num = 02 unmodified linescategory_total = defaultdict(float)category_acc = defaultdict(float)model_answers = json.loads(input_file)with jsonlines.open(video_meta_file) as reader:video_meta = list(reader)
app.py+1-1
compute_accuracy.py+2-2