Spaces:
Runtime error
Runtime error
sabarinathan
commited on
Commit
•
5517375
1
Parent(s):
5525f11
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def getOCRResults(image_path):
|
|
93 |
result_json["result"] = results0
|
94 |
#response = jsonify(result_json)
|
95 |
#response.headers['Content-Type'] = 'application/json; charset=utf-8'
|
96 |
-
return
|
97 |
|
98 |
|
99 |
ocrAPP = OCR()
|
@@ -106,7 +106,7 @@ inputs_image = [
|
|
106 |
gr.components.Image(type="filepath", label="Input Image"),
|
107 |
]
|
108 |
outputs = [
|
109 |
-
gr.
|
110 |
]
|
111 |
interface_image = gr.Interface(
|
112 |
fn=getOCRResults,
|
|
|
93 |
result_json["result"] = results0
|
94 |
#response = jsonify(result_json)
|
95 |
#response.headers['Content-Type'] = 'application/json; charset=utf-8'
|
96 |
+
return result_json
|
97 |
|
98 |
|
99 |
ocrAPP = OCR()
|
|
|
106 |
gr.components.Image(type="filepath", label="Input Image"),
|
107 |
]
|
108 |
outputs = [
|
109 |
+
gr.components.JSON(label="Output Json"),
|
110 |
]
|
111 |
interface_image = gr.Interface(
|
112 |
fn=getOCRResults,
|