eduardmtz commited on
Commit
3e79ff0
·
verified ·
1 Parent(s): fcb1d06

Update test5.html

Browse files
Files changed (1) hide show
  1. test5.html +5 -2
test5.html CHANGED
@@ -35,7 +35,8 @@
35
  <h3>Respuesta:</h3>
36
  <div id="response"></div>
37
 
38
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/es5/build/pdf.min.js"></script>
 
39
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jszip.min.js"></script>
40
 
41
  <script>
@@ -162,8 +163,9 @@
162
  context: context // Should be a string
163
  }
164
  };
165
- const cucu = window.huggingface.variables["API_KEY_2"];
166
  console.log("key : " + cucu);
 
167
  try {
168
  const response = await fetch('https://api-inference.huggingface.co/models/distilbert-base-multilingual-cased', {
169
  method: 'POST',
@@ -192,3 +194,4 @@
192
 
193
 
194
 
 
 
35
  <h3>Respuesta:</h3>
36
  <div id="response"></div>
37
 
38
+ <!-- Cargar la librería PDF.js -->
39
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.10.377/pdf.min.js"></script>
40
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jszip.min.js"></script>
41
 
42
  <script>
 
163
  context: context // Should be a string
164
  }
165
  };
166
+ const cucu = window.huggingface.variables["API_KEY_2"];
167
  console.log("key : " + cucu);
168
+
169
  try {
170
  const response = await fetch('https://api-inference.huggingface.co/models/distilbert-base-multilingual-cased', {
171
  method: 'POST',
 
194
 
195
 
196
 
197
+