Spaces:
Build error
Build error
Commit
·
b7f1f18
1
Parent(s):
7a38bf7
Upload app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def read_img(image):
|
|
| 15 |
# Run the model
|
| 16 |
result = predictor(doc)
|
| 17 |
# Return the result
|
| 18 |
-
return result, result.show()
|
| 19 |
|
| 20 |
app = gr.Interface(
|
| 21 |
title="Image OCR",
|
|
@@ -26,4 +26,4 @@ app = gr.Interface(
|
|
| 26 |
)
|
| 27 |
|
| 28 |
|
| 29 |
-
app.launch(debug=True
|
|
|
|
| 15 |
# Run the model
|
| 16 |
result = predictor(doc)
|
| 17 |
# Return the result
|
| 18 |
+
return result, result.show(doc)
|
| 19 |
|
| 20 |
app = gr.Interface(
|
| 21 |
title="Image OCR",
|
|
|
|
| 26 |
)
|
| 27 |
|
| 28 |
|
| 29 |
+
app.launch(debug=True)
|