Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def recognize_text(image):
|
|
17 |
# Gradio Interface
|
18 |
interface = gr.Interface(
|
19 |
fn=recognize_text,
|
20 |
-
inputs=gr.
|
21 |
-
outputs=gr.
|
22 |
title="OCR Model Demo",
|
23 |
description="Upload an image containing text to test the OCR model.",
|
24 |
)
|
|
|
17 |
# Gradio Interface
|
18 |
interface = gr.Interface(
|
19 |
fn=recognize_text,
|
20 |
+
inputs=gr.Image(type="file", label="Upload an Image"),
|
21 |
+
outputs=gr.Textbox(label="Recognized Text"),
|
22 |
title="OCR Model Demo",
|
23 |
description="Upload an image containing text to test the OCR model.",
|
24 |
)
|