Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -79,13 +79,13 @@ def app(image, keyword):
|
|
79 |
iface = gr.Interface(
|
80 |
fn=app,
|
81 |
inputs=[
|
82 |
-
gr.
|
83 |
-
gr.
|
84 |
],
|
85 |
outputs=[
|
86 |
-
gr.
|
87 |
-
gr.
|
88 |
-
gr.
|
89 |
],
|
90 |
title="OCR and Keyword Search in Images",
|
91 |
)
|
|
|
79 |
iface = gr.Interface(
|
80 |
fn=app,
|
81 |
inputs=[
|
82 |
+
gr.Image(type="pil", label="Upload an Image"), # Corrected to gr.Image
|
83 |
+
gr.Textbox(label="Enter keyword to search in extracted text", placeholder="Keyword")
|
84 |
],
|
85 |
outputs=[
|
86 |
+
gr.Textbox(label="Extracted Text"),
|
87 |
+
gr.Textbox(label="Search Results"),
|
88 |
+
gr.JSON(label="JSON Output")
|
89 |
],
|
90 |
title="OCR and Keyword Search in Images",
|
91 |
)
|