Spaces:
Runtime error
Runtime error
remove zero
Browse files
app.py
CHANGED
|
@@ -12,7 +12,6 @@ model = MllamaForConditionalGeneration.from_pretrained(
|
|
| 12 |
).to("cuda")
|
| 13 |
processor = AutoProcessor.from_pretrained(ocr)
|
| 14 |
|
| 15 |
-
@spaces.GPU
|
| 16 |
def extract_text(image):
|
| 17 |
# Convert image to RGB
|
| 18 |
image = Image.open(image).convert("RGB")
|
|
|
|
| 12 |
).to("cuda")
|
| 13 |
processor = AutoProcessor.from_pretrained(ocr)
|
| 14 |
|
|
|
|
| 15 |
def extract_text(image):
|
| 16 |
# Convert image to RGB
|
| 17 |
image = Image.open(image).convert("RGB")
|