Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
def wordsrch(img):
|
4 |
lang = ["en"]
|
5 |
#ocrimg = gr.Interface.load("spaces/PaddlePaddle/PaddleOCR")(img, lang)
|
6 |
-
ocrimg = gr.Interface.load("spaces/tomofi/EasyOCR")(img, lang)
|
7 |
return ocrimg #, dframe
|
8 |
|
9 |
#examples = [["wordsearch2.jpg","en"]]
|
|
|
3 |
def wordsrch(img):
|
4 |
lang = ["en"]
|
5 |
#ocrimg = gr.Interface.load("spaces/PaddlePaddle/PaddleOCR")(img, lang)
|
6 |
+
ocrimg = gr.Interface.load("spaces/tomofi/EasyOCR")(img, lang)[0]
|
7 |
return ocrimg #, dframe
|
8 |
|
9 |
#examples = [["wordsearch2.jpg","en"]]
|