xelpmocAI commited on
Commit
4222109
·
verified ·
1 Parent(s): 34e5dc4

Fixed output and images

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -97,8 +97,11 @@ def demo(image_name, prompt):
97
  def process_document(image):
98
  one = demo(image, other_benifits)
99
  two = demo(image, tax_deductions)
100
-
101
- return one, two
 
 
 
102
 
103
  # article = "<p style='text-align: center'><a href='https://www.xelpmoc.in/' target='_blank'>Made by Xelpmoc</a></p>"
104
 
@@ -106,10 +109,10 @@ demo = gr.Interface(
106
  fn=process_document,
107
  inputs="image",
108
  outputs="json",
109
- title="Template-Free OCR model",
110
  # article=article,
111
  enable_queue=True,
112
- examples=[["example.png"], ["example_2.png"]],
113
  cache_examples=False)
114
 
115
  demo.launch()
 
97
  def process_document(image):
98
  one = demo(image, other_benifits)
99
  two = demo(image, tax_deductions)
100
+ json_op = {
101
+ "tax_deductions": one,
102
+ "other_benifits": two
103
+ }
104
+ return json_op
105
 
106
  # article = "<p style='text-align: center'><a href='https://www.xelpmoc.in/' target='_blank'>Made by Xelpmoc</a></p>"
107
 
 
109
  fn=process_document,
110
  inputs="image",
111
  outputs="json",
112
+ title="PaySlip_Demo_Model",
113
  # article=article,
114
  enable_queue=True,
115
+ examples=[["Slip_1.jpg"], ["Slip_2.jpg"]],
116
  cache_examples=False)
117
 
118
  demo.launch()