MCPcopy Create free account
hub / github.com/cpystan/SD-VLM / updateQuestionSelect

Function updateQuestionSelect

llava/eval/webpage/script.js:48–62  ·  view source on GitHub ↗
(question_id)

Source from the content-addressed store, hash-verified

46}
47
48function updateQuestionSelect(question_id) {
49 const select = document.getElementById('question-select');
50 // Clear the question select.
51 select.innerHTML = '';
52 // Populate the question select.
53 category = questionMapping[question_id].category;
54 categoryMapping[category].forEach(question_id => {
55 const question = questionMapping[question_id];
56 const option = document.createElement('option');
57 option.value = question_id;
58 option.textContent = 'Q' + question_id.toString() + ': ' + question.question;
59 select.appendChild(option);
60 });
61 select.value = question_id;
62}
63
64function updateModelSelect() {
65 const select = document.getElementById('model-select');

Callers 3

populateQuestionsFunction · 0.85
script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected