meet12341234's picture
Update index.html
25f6af0 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Voxtral Audio Demo</title>
<style>
body { font-family: sans-serif; background: #f9f9f9; padding: 2rem; }
.container { max-width: 600px; margin: auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px #0001; padding: 2rem; }
.output { margin-top: 2rem; }
.person1 { color: #2563eb; font-weight: bold; }
.person2 { color: #16a34a; font-weight: bold; }
.loading { color: #f59e42; }
.spinner {
display: inline-block;
width: 24px;
height: 24px;
border: 3px solid #e5e7eb;
border-top: 3px solid #2563eb;
border-radius: 50%;
animation: spin 1s linear infinite;
vertical-align: middle;
margin-right: 8px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div class="container">
<h2>Voxtral Conversation Transcriber</h2>
<div style="margin-bottom: 1rem;">
<label>Conversation Audio File: <input type="file" id="audioInput" accept="audio/*" /></label>
</div>
<div style="margin-top: 1rem;">
<button id="loadModelBtn">Load Model</button>
<button id="runBtn" disabled>Transcribe & Detect Conversation</button>
</div>
<div class="output" id="output"></div>
</div>
<script type="module" src="/index.js"></script>
</body>
</html>