Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,9 +6,6 @@ import gradio as gr
|
|
| 6 |
import torch
|
| 7 |
import easyocr
|
| 8 |
|
| 9 |
-
processor = AutoProcessor.from_pretrained("Sharka/CIVQA_LayoutLMv2_EasyOCR")
|
| 10 |
-
model = AutoModelForDocumentQuestionAnswering.from_pretrained("Sharka/CIVQA_LayoutLMv2_EasyOCR")
|
| 11 |
-
|
| 12 |
def draw_boxes(image, bounds, color='red', width=2):
|
| 13 |
draw = ImageDraw.Draw(image)
|
| 14 |
for bound in bounds:
|
|
|
|
| 6 |
import torch
|
| 7 |
import easyocr
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
def draw_boxes(image, bounds, color='red', width=2):
|
| 10 |
draw = ImageDraw.Draw(image)
|
| 11 |
for bound in bounds:
|