Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -257,14 +257,14 @@ def process_and_output_files(input_files):
|
|
| 257 |
# )
|
| 258 |
|
| 259 |
response_dict = json.loads(chats[1]["value"][0][1])
|
| 260 |
-
if
|
| 261 |
# Extract the relevant data
|
| 262 |
|
| 263 |
extracted_data = {
|
| 264 |
"S.No.": item_no,
|
| 265 |
"Nature of Expenditure": response_dict.get("summary"),
|
| 266 |
"Billing Date": response_dict.get("issue_date"),
|
| 267 |
-
"Bill/Invoice No.":
|
| 268 |
"Amount(Rs.)": response_dict.get("total"),
|
| 269 |
|
| 270 |
}
|
|
|
|
| 257 |
# )
|
| 258 |
|
| 259 |
response_dict = json.loads(chats[1]["value"][0][1])
|
| 260 |
+
if category.name == "TRAVEL_CAB" :
|
| 261 |
# Extract the relevant data
|
| 262 |
|
| 263 |
extracted_data = {
|
| 264 |
"S.No.": item_no,
|
| 265 |
"Nature of Expenditure": response_dict.get("summary"),
|
| 266 |
"Billing Date": response_dict.get("issue_date"),
|
| 267 |
+
"Bill/Invoice No.": "NA",
|
| 268 |
"Amount(Rs.)": response_dict.get("total"),
|
| 269 |
|
| 270 |
}
|