Swekerr commited on
Commit
235fb7e
·
verified ·
1 Parent(s): 5e1aec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -79,13 +79,13 @@ def app(image, keyword):
79
  iface = gr.Interface(
80
  fn=app,
81
  inputs=[
82
- gr.inputs.Image(type="pil", label="Upload an Image"),
83
- gr.inputs.Textbox(label="Enter keyword to search in extracted text", default="")
84
  ],
85
  outputs=[
86
- gr.outputs.Textbox(label="Extracted Text"),
87
- gr.outputs.Textbox(label="Search Results"),
88
- gr.outputs.JSON(label="JSON Output")
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
  )