Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,14 @@ import indra_ocr
|
|
| 15 |
from indra_ocr.document import MAX_PAGE_PIXELS
|
| 16 |
from PIL import Image, ImageDraw
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
CSS = """
|
| 19 |
#col-container { max-width: 1280px; margin: 0 auto; }
|
| 20 |
.dark .gradio-container { color: var(--body-text-color); }
|
|
|
|
| 15 |
from indra_ocr.document import MAX_PAGE_PIXELS
|
| 16 |
from PIL import Image, ImageDraw
|
| 17 |
|
| 18 |
+
import spaces
|
| 19 |
+
|
| 20 |
+
@spaces.GPU
|
| 21 |
+
def _zerogpu_placeholder():
|
| 22 |
+
"""ZeroGPU requiere una funci贸n decorada; nunca se llama."""
|
| 23 |
+
pass
|
| 24 |
+
|
| 25 |
+
|
| 26 |
CSS = """
|
| 27 |
#col-container { max-width: 1280px; margin: 0 auto; }
|
| 28 |
.dark .gradio-container { color: var(--body-text-color); }
|