xelpmocAI commited on
Commit
c7c2a12
·
verified ·
1 Parent(s): a515837

final text and JSON

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -123,7 +123,7 @@ def process_document(image):
123
  # Optionally, you can delete the temporary file after use
124
  os.remove(image_path)
125
 
126
- return one, three, two, four
127
 
128
 
129
 
@@ -134,10 +134,10 @@ demo = gr.Interface(
134
  fn=process_document,
135
  inputs="image", # Gradio will handle the image input
136
  outputs=[
137
- gr.JSON(label="Tax Deductions Information"), # First output box with heading
138
  gr.Textbox(label="Other Benefits and Information"), # Second output box with heading
 
 
139
  gr.JSON(label="Tax Deductions Information"), # First output box with heading
140
- gr.Textbox(label="Other Benefits and Information") # Second output box with heading
141
  ],
142
  title="<div style='text-align: center;'>Information Extraction From PaySlip</div>",
143
  examples=[["Slip_1.jpg"], ["Slip_2.jpg"]],
 
123
  # Optionally, you can delete the temporary file after use
124
  os.remove(image_path)
125
 
126
+ return one, two, three, four
127
 
128
 
129
 
 
134
  fn=process_document,
135
  inputs="image", # Gradio will handle the image input
136
  outputs=[
 
137
  gr.Textbox(label="Other Benefits and Information"), # Second output box with heading
138
+ gr.Textbox(label="Tax Deductions Information"), # Second output box with heading
139
+ gr.JSON(label="Other Benefits and Information"), # First output box with heading
140
  gr.JSON(label="Tax Deductions Information"), # First output box with heading
 
141
  ],
142
  title="<div style='text-align: center;'>Information Extraction From PaySlip</div>",
143
  examples=[["Slip_1.jpg"], ["Slip_2.jpg"]],