SpawnedShoyo commited on
Commit
5a57438
·
verified ·
1 Parent(s): 66a8090

Update ai.js

Browse files
Files changed (1) hide show
  1. ai.js +7 -0
ai.js CHANGED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <script src="https://cdn.jsdelivr.net/npm/@huggingface/hf-ai/dist/hf-ai.min.js"></script>
2
+
3
+ const model = new hf.Model({ repo: 'openai/whisper-large-v3' });
4
+
5
+ function generateResponse(input) {
6
+ return model.generate(input);
7
+ }