Spaces:
Runtime error
Runtime error
Commit ·
f6ec5e1
1
Parent(s): 340cd2c
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ def OCR_processor(input_image):
|
|
| 11 |
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=OCR_processor,
|
| 14 |
-
inputs=gr.inputs.Image(type="
|
| 15 |
-
outputs=gr.outputs.Image(type="
|
| 16 |
title="OCR Image Processor",
|
| 17 |
description="Upload an image, and the app will process it using OCR_processor() function.",
|
| 18 |
theme="default", # You can use "default", "compact", or "huggingface" themes
|
|
|
|
| 11 |
|
| 12 |
iface = gr.Interface(
|
| 13 |
fn=OCR_processor,
|
| 14 |
+
inputs=gr.inputs.Image(type="pil", label="Upload an Image"),
|
| 15 |
+
outputs=gr.outputs.Image(type="pil", label="Processed Image"),
|
| 16 |
title="OCR Image Processor",
|
| 17 |
description="Upload an image, and the app will process it using OCR_processor() function.",
|
| 18 |
theme="default", # You can use "default", "compact", or "huggingface" themes
|