FAAM-demo / index.html
KasKniesmeijer's picture
Add SmolVLM with WebGPU frontend
cab1df1
raw
history blame
677 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SmolVLM WebGPU</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>SmolVLM - Vision-Language Question Answering</h1>
<div id="app">
<canvas id="webgpu-canvas"></canvas>
<div id="controls">
<input type="file" id="image-upload" accept="image/*">
<input type="text" id="question" placeholder="Ask a question about the image">
<button id="submit-btn">Submit</button>
</div>
<div id="answer">Answer will appear here</div>
</div>
<script type="module" src="./src/main.js"></script>
</body>
</html>