Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
|
@@ -1,16 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import spaces
|
| 3 |
from PIL import Image
|
| 4 |
-
from atlasocr_model import AtlasOCR
|
| 5 |
-
|
| 6 |
-
# Load model and processor
|
| 7 |
-
|
| 8 |
-
atlas_ocr=AtlasOCR()
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
@spaces.GPU
|
| 13 |
def perform_ocr(image):
|
|
|
|
|
|
|
| 14 |
output_text = atlas_ocr(image)
|
| 15 |
return output_text
|
| 16 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import spaces
|
| 3 |
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
@spaces.GPU
|
| 8 |
def perform_ocr(image):
|
| 9 |
+
from atlasocr_model import AtlasOCR
|
| 10 |
+
atlas_ocr=AtlasOCR()
|
| 11 |
output_text = atlas_ocr(image)
|
| 12 |
return output_text
|
| 13 |
|