Spaces:
Running
Running
Update test1.html
Browse files- test1.html +8 -4
test1.html
CHANGED
|
@@ -1,15 +1,18 @@
|
|
| 1 |
-
|
| 2 |
<html lang="es">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Modelo de Preguntas y Respuestas sobre un PDF</title>
|
| 7 |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
|
| 8 |
-
<!-- Cargar PDF.js
|
|
|
|
| 9 |
<script>
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
| 11 |
</script>
|
| 12 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"></script>
|
| 13 |
</head>
|
| 14 |
<body>
|
| 15 |
<h1>Modelo de Preguntas y Respuestas sobre un PDF</h1>
|
|
@@ -119,3 +122,4 @@
|
|
| 119 |
</body>
|
| 120 |
</html>
|
| 121 |
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
<html lang="es">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Modelo de Preguntas y Respuestas sobre un PDF</title>
|
| 7 |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
|
| 8 |
+
<!-- Cargar PDF.js -->
|
| 9 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"></script>
|
| 10 |
<script>
|
| 11 |
+
// Aseguramos que pdf.js esté cargado antes de configurarlo
|
| 12 |
+
window.onload = function() {
|
| 13 |
+
pdfjsLib.GlobalWorkerOptions.workerSrc = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.worker.min.js";
|
| 14 |
+
}
|
| 15 |
</script>
|
|
|
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
<h1>Modelo de Preguntas y Respuestas sobre un PDF</h1>
|
|
|
|
| 122 |
</body>
|
| 123 |
</html>
|
| 124 |
|
| 125 |
+
|