Spaces:
Runtime error
Runtime error
Commit
·
bad5463
1
Parent(s):
569333f
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def inference(img):
|
|
| 28 |
# draw_boxes(im, bounds)
|
| 29 |
# im.save('result.jpg')
|
| 30 |
# print(pd.DataFrame(bounds).iloc[: , 1:2].to_string)
|
| 31 |
-
return pd.DataFrame(bounds).iloc[: , 1:2].to_string(header=False, index=False)
|
| 32 |
|
| 33 |
|
| 34 |
# title = 'EasyOCR'
|
|
@@ -43,7 +43,7 @@ def inference(img):
|
|
| 43 |
gr.Interface(
|
| 44 |
inference
|
| 45 |
[gr.inputs.Image(type='file', label='Input')],
|
| 46 |
-
|
| 47 |
# title=title,
|
| 48 |
# description=description,
|
| 49 |
# article=article,
|
|
|
|
| 28 |
# draw_boxes(im, bounds)
|
| 29 |
# im.save('result.jpg')
|
| 30 |
# print(pd.DataFrame(bounds).iloc[: , 1:2].to_string)
|
| 31 |
+
return [pd.DataFrame(bounds).iloc[: , 1:2].to_string(header=False, index=False)]
|
| 32 |
|
| 33 |
|
| 34 |
# title = 'EasyOCR'
|
|
|
|
| 43 |
gr.Interface(
|
| 44 |
inference
|
| 45 |
[gr.inputs.Image(type='file', label='Input')],
|
| 46 |
+
[gr.outputs.Textbox(type='str')],
|
| 47 |
# title=title,
|
| 48 |
# description=description,
|
| 49 |
# article=article,
|