Spaces:
Runtime error
Runtime error
Commit
·
2090990
1
Parent(s):
018a182
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def detect_text(image):
|
|
| 29 |
# Create a Gradio interface
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=detect_text,
|
| 32 |
-
inputs=gr.inputs.Image(type="
|
| 33 |
outputs=gr.outputs.Image(type="pil"),
|
| 34 |
title="EasyOCR Text Detection",
|
| 35 |
description="Upload an image and detect text with EasyOCR",
|
|
@@ -37,4 +37,4 @@ iface = gr.Interface(
|
|
| 37 |
)
|
| 38 |
|
| 39 |
# Launch the Gradio app
|
| 40 |
-
iface.launch()
|
|
|
|
| 29 |
# Create a Gradio interface
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=detect_text,
|
| 32 |
+
inputs=gr.inputs.Image(type="pil", label="Upload an image"),
|
| 33 |
outputs=gr.outputs.Image(type="pil"),
|
| 34 |
title="EasyOCR Text Detection",
|
| 35 |
description="Upload an image and detect text with EasyOCR",
|
|
|
|
| 37 |
)
|
| 38 |
|
| 39 |
# Launch the Gradio app
|
| 40 |
+
iface.launch()
|