No estas haciendo que lo descargue automaticamente, me sigue saliendo la ventana de descargar de todos modos de google drive - Initial Deployment
Browse files- README.md +7 -5
- index.html +96 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: descarga
|
| 3 |
+
emoji: 馃惓
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,96 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Descarga Autom谩tica</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<style>
|
| 9 |
+
.loading-spinner {
|
| 10 |
+
border: 4px solid rgba(0, 0, 0, 0.1);
|
| 11 |
+
border-radius: 50%;
|
| 12 |
+
border-top: 4px solid #3b82f6;
|
| 13 |
+
width: 40px;
|
| 14 |
+
height: 40px;
|
| 15 |
+
animation: spin 1s linear infinite;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
@keyframes spin {
|
| 20 |
+
0% { transform: rotate(0deg); }
|
| 21 |
+
100% { transform: rotate(360deg); }
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.fade-in {
|
| 25 |
+
animation: fadeIn 0.5s ease-in;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
@keyframes fadeIn {
|
| 29 |
+
from { opacity: 0; }
|
| 30 |
+
to { opacity: 1; }
|
| 31 |
+
}
|
| 32 |
+
</style>
|
| 33 |
+
</head>
|
| 34 |
+
<body class="bg-gray-100 min-h-screen flex flex-col items-center justify-center p-4">
|
| 35 |
+
<div class="bg-white rounded-xl shadow-lg p-8 max-w-md w-full text-center fade-in">
|
| 36 |
+
<div class="mb-6">
|
| 37 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-16 w-16 mx-auto text-blue-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 38 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10" />
|
| 39 |
+
</svg>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<h1 class="text-2xl font-bold text-gray-800 mb-4">Preparando tu descarga</h1>
|
| 43 |
+
|
| 44 |
+
<p class="text-gray-600 mb-6">El archivo se descargar谩 autom谩ticamente en unos momentos. Por favor, no cierres esta p谩gina.</p>
|
| 45 |
+
|
| 46 |
+
<div id="spinner" class="loading-spinner mb-6"></div>
|
| 47 |
+
|
| 48 |
+
<div id="success-message" class="hidden">
|
| 49 |
+
<div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded mb-4">
|
| 50 |
+
<p>隆Descarga iniciada con 茅xito!</p>
|
| 51 |
+
</div>
|
| 52 |
+
<p class="text-gray-600 mb-4">Si la descarga no comienza autom谩ticamente, haz clic en el bot贸n de abajo.</p>
|
| 53 |
+
<a href="https://drive.usercontent.google.com/download?id=1JMZqEPV6sXNQ0vxt6nnS6s8Tjpzlgpbz&export=download&authuser=0&confirm=t"
|
| 54 |
+
class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-6 rounded-lg transition duration-200 inline-block">
|
| 55 |
+
Descargar ahora
|
| 56 |
+
</a>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div id="error-message" class="hidden">
|
| 60 |
+
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4">
|
| 61 |
+
<p>Ocurri贸 un error al intentar descargar el archivo.</p>
|
| 62 |
+
</div>
|
| 63 |
+
<p class="text-gray-600 mb-4">Por favor, intenta descargarlo manualmente.</p>
|
| 64 |
+
<a href="https://drive.usercontent.google.com/download?id=1JMZqEPV6sXNQ0vxt6nnS6s8Tjpzlgpbz&export=download&authuser=0&confirm=t"
|
| 65 |
+
class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-6 rounded-lg transition duration-200 inline-block">
|
| 66 |
+
Intentar nuevamente
|
| 67 |
+
</a>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<script>
|
| 72 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 73 |
+
setTimeout(function() {
|
| 74 |
+
try {
|
| 75 |
+
// Crear iframe oculto para forzar la descarga
|
| 76 |
+
const iframe = document.createElement('iframe');
|
| 77 |
+
iframe.style.display = 'none';
|
| 78 |
+
iframe.src = 'https://drive.usercontent.google.com/download?id=1JMZqEPV6sXNQ0vxt6nnS6s8Tjpzlgpbz&export=download&authuser=0&confirm=t';
|
| 79 |
+
document.body.appendChild(iframe);
|
| 80 |
+
|
| 81 |
+
// Verificar si la descarga comenz贸
|
| 82 |
+
setTimeout(function() {
|
| 83 |
+
document.getElementById('spinner').classList.add('hidden');
|
| 84 |
+
document.getElementById('success-message').classList.remove('hidden');
|
| 85 |
+
}, 3000);
|
| 86 |
+
|
| 87 |
+
} catch (e) {
|
| 88 |
+
console.error('Error al descargar:', e);
|
| 89 |
+
document.getElementById('spinner').classList.add('hidden');
|
| 90 |
+
document.getElementById('error-message').classList.remove('hidden');
|
| 91 |
+
}
|
| 92 |
+
}, 1500);
|
| 93 |
+
});
|
| 94 |
+
</script>
|
| 95 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 馃К <a href="https://enzostvs-deepsite.hf.space?remix=Segesp/descarga" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 96 |
+
</html>
|