Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ ADAPTER = "honesdev/smolvlm2-500-invoice-extractor-v3"
|
|
| 13 |
PROMPT = "Extract the invoice details and return a JSON object only. Return null for any missing fields."
|
| 14 |
|
| 15 |
print("Loading processor...")
|
| 16 |
-
processor = AutoProcessor.from_pretrained(
|
| 17 |
|
| 18 |
print("Loading base model...")
|
| 19 |
model = AutoModelForImageTextToText.from_pretrained(
|
|
|
|
| 13 |
PROMPT = "Extract the invoice details and return a JSON object only. Return null for any missing fields."
|
| 14 |
|
| 15 |
print("Loading processor...")
|
| 16 |
+
processor = AutoProcessor.from_pretrained(BASE_MODEL)
|
| 17 |
|
| 18 |
print("Loading base model...")
|
| 19 |
model = AutoModelForImageTextToText.from_pretrained(
|