Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
def wordsrch(img):
|
4 |
lang = ["en"]
|
5 |
#ocrimg = gr.Interface.load("spaces/PaddlePaddle/PaddleOCR")(img, lang)
|
6 |
ocrimg, dframe = gr.Interface.load("spaces/tomofi/EasyOCR")(img, lang)
|
7 |
print(dframe)
|
|
|
8 |
return ocrimg
|
9 |
|
10 |
#examples = [["wordsearch2.jpg","en"]]
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
############################################################ This is still under progress #######################
|
4 |
+
#def formatdata(dframe):
|
5 |
+
#return
|
6 |
+
|
7 |
+
|
8 |
def wordsrch(img):
|
9 |
lang = ["en"]
|
10 |
#ocrimg = gr.Interface.load("spaces/PaddlePaddle/PaddleOCR")(img, lang)
|
11 |
ocrimg, dframe = gr.Interface.load("spaces/tomofi/EasyOCR")(img, lang)
|
12 |
print(dframe)
|
13 |
+
formatdata(dframe)
|
14 |
return ocrimg
|
15 |
|
16 |
#examples = [["wordsearch2.jpg","en"]]
|