Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ logging.basicConfig(level=logging.INFO)
|
|
| 14 |
logger = logging.getLogger(__name__)
|
| 15 |
|
| 16 |
class AtlasOCR:
|
| 17 |
-
def __init__(self, model_name: str = "atlasia/AtlasOCR
|
| 18 |
"""Initialize the AtlasOCR model with proper error handling."""
|
| 19 |
try:
|
| 20 |
from unsloth import FastVisionModel
|
|
|
|
| 14 |
logger = logging.getLogger(__name__)
|
| 15 |
|
| 16 |
class AtlasOCR:
|
| 17 |
+
def __init__(self, model_name: str = "atlasia/AtlasOCR", max_tokens: int = 2000):
|
| 18 |
"""Initialize the AtlasOCR model with proper error handling."""
|
| 19 |
try:
|
| 20 |
from unsloth import FastVisionModel
|