Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,11 +22,6 @@ if IS_ZEROGPU:
|
|
| 22 |
MODEL_NAME ="atlasia/AtlasOCR"
|
| 23 |
MAX_TOKENS = 4096
|
| 24 |
|
| 25 |
-
print(f"[Init] Loading model pipeline for the first time: {MODEL_NAME}...")
|
| 26 |
-
@spaces.GPU
|
| 27 |
-
def load_model():
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
@spaces.GPU()
|
| 32 |
@torch.inference_mode()
|
|
|
|
| 22 |
MODEL_NAME ="atlasia/AtlasOCR"
|
| 23 |
MAX_TOKENS = 4096
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
@spaces.GPU()
|
| 27 |
@torch.inference_mode()
|