Update index.js
Browse files
index.js
CHANGED
@@ -31,6 +31,7 @@ let currentQuery = '';
|
|
31 |
|
32 |
async function initializeSessions() {
|
33 |
status.textContent = 'Loading model...';
|
|
|
34 |
|
35 |
ortSessionA = await ort.InferenceSession.create(
|
36 |
await getModelFile(ONNX_MODEL, `onnx/QwenVL_A_${QUANT}.onnx`),
|
@@ -68,6 +69,7 @@ async function initializeSessions() {
|
|
68 |
|
69 |
uploadInput.disabled = false;
|
70 |
promptInput.disabled = false;
|
|
|
71 |
}
|
72 |
|
73 |
export function int64ToFloat16(int64Value) {
|
|
|
31 |
|
32 |
async function initializeSessions() {
|
33 |
status.textContent = 'Loading model...';
|
34 |
+
container.classList.add('disabled');
|
35 |
|
36 |
ortSessionA = await ort.InferenceSession.create(
|
37 |
await getModelFile(ONNX_MODEL, `onnx/QwenVL_A_${QUANT}.onnx`),
|
|
|
69 |
|
70 |
uploadInput.disabled = false;
|
71 |
promptInput.disabled = false;
|
72 |
+
container.classList.remove('disabled');
|
73 |
}
|
74 |
|
75 |
export function int64ToFloat16(int64Value) {
|