Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ from PIL import ImageDraw
|
|
| 6 |
import gradio as gr
|
| 7 |
import easyocr
|
| 8 |
|
|
|
|
| 9 |
def process(img):
|
| 10 |
reader = easyocr.Reader(['en'])
|
| 11 |
bounds = reader.readtext(img.name)
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
import easyocr
|
| 8 |
|
| 9 |
+
@spaces.GPU
|
| 10 |
def process(img):
|
| 11 |
reader = easyocr.Reader(['en'])
|
| 12 |
bounds = reader.readtext(img.name)
|