File size: 962 Bytes
361ee5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
    <title>clip-tagger Model Usage Example</title>
    <script type="module">
        import { CLAPProcessor } from './clapProcessor.js';
        import { LocalClassifier } from './localClassifier.js';
        
        async function loadModel() {
            const processor = new CLAPProcessor();
            const classifier = new LocalClassifier();
            
            // Initialize
            await processor.initialize();
            classifier.loadModel();
            
            console.log('Model loaded successfully!');
            console.log('Model stats:', classifier.getModelStats());
        }
        
        // Load when page loads
        loadModel();
    </script>
</head>
<body>
    <h1>clip-tagger Model</h1>
    <p>Check the browser console for model loading status.</p>
    <p>See the full demo at: <a href="https://huggingface.co/spaces/sohei1l/clip-tagger">clip-tagger Space</a></p>
</body>
</html>