Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
#import cv2
|
11 |
from PIL import Image,ImageFont, ImageDraw
|
12 |
import CALTextModel
|
13 |
-
|
14 |
|
15 |
|
16 |
#### training setup parameters ####
|
@@ -141,7 +141,7 @@ def test_error( images, x_mask):
|
|
141 |
]'''
|
142 |
|
143 |
|
144 |
-
|
145 |
|
146 |
def recognize_text(input_image):
|
147 |
x, x_mask=preprocess_img(input_image)
|
|
|
10 |
#import cv2
|
11 |
from PIL import Image,ImageFont, ImageDraw
|
12 |
import CALTextModel
|
13 |
+
import gradio as gr
|
14 |
|
15 |
|
16 |
#### training setup parameters ####
|
|
|
141 |
]'''
|
142 |
|
143 |
|
144 |
+
|
145 |
|
146 |
def recognize_text(input_image):
|
147 |
x, x_mask=preprocess_img(input_image)
|