Spaces:
Paused
Paused
output mismatch
Browse files
app.py
CHANGED
@@ -117,13 +117,13 @@ def process_document(image):
|
|
117 |
# Process the image with your model
|
118 |
one = process_function(image_path, other_benifits)
|
119 |
two = process_function(image_path, tax_deductions)
|
120 |
-
|
121 |
-
|
122 |
|
123 |
# Optionally, you can delete the temporary file after use
|
124 |
os.remove(image_path)
|
125 |
|
126 |
-
return
|
127 |
|
128 |
|
129 |
|
|
|
117 |
# Process the image with your model
|
118 |
one = process_function(image_path, other_benifits)
|
119 |
two = process_function(image_path, tax_deductions)
|
120 |
+
text_one = format_nested_dict(one)
|
121 |
+
text_two = format_nested_dict(two)
|
122 |
|
123 |
# Optionally, you can delete the temporary file after use
|
124 |
os.remove(image_path)
|
125 |
|
126 |
+
return text_one, text_two, one, two
|
127 |
|
128 |
|
129 |
|