xelpmocAI commited on
Commit
25ad79c
·
verified ·
1 Parent(s): 080f6e3

header for output

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -171,7 +171,10 @@ def process_document(image):
171
  demo = gr.Interface(
172
  fn=process_document,
173
  inputs="image", # Gradio will handle the image input
174
- outputs=["json", "json"],
 
 
 
175
  title="PaySlip_Demo_Model",
176
  examples=[["Slip_1.jpg"], ["Slip_2.jpg"]],
177
  cache_examples=False
 
171
  demo = gr.Interface(
172
  fn=process_document,
173
  inputs="image", # Gradio will handle the image input
174
+ outputs=[
175
+ gr.outputs.JSON(label="Tax Deductions Information"), # First output box with heading
176
+ gr.outputs.JSON(label="Other Benefits and Information") # Second output box with heading
177
+ ],
178
  title="PaySlip_Demo_Model",
179
  examples=[["Slip_1.jpg"], ["Slip_2.jpg"]],
180
  cache_examples=False