qq1023 commited on
Commit
78761b5
·
1 Parent(s): 4f806aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 response_dict.get("summary") :
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.": response_dict.get("uids"),
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
  }