ankur-bohra commited on
Commit
dbc99f7
1 Parent(s): 8ed1654

Fix category default

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -273,11 +273,11 @@ with gr.Blocks(title="Automatic Reimbursement Tool Demo") as page:
273
  [extracted_text],
274
  )
275
  submit_button.click(
276
- lambda input_file, category, chatbot, information: print("Resetting") or (
277
- gr.Dropdown.update(None),
278
- gr.Chatbot.update(Category.ACCOMODATION),
279
  gr.Textbox.update(None),
280
- ) if input_file else (category, chatbot, information),
281
  [input_file, category, chatbot, information],
282
  [category, chatbot, information],
283
  )
 
273
  [extracted_text],
274
  )
275
  submit_button.click(
276
+ lambda input_file, category, chatbot, information: (print("File supplied, resetting") or (
277
+ gr.Dropdown.update(Category.ACCOMODATION),
278
+ gr.Chatbot.update(None),
279
  gr.Textbox.update(None),
280
+ )) if input_file else (print("File not supplied, keeping") or print(category, chatbot, information)),
281
  [input_file, category, chatbot, information],
282
  [category, chatbot, information],
283
  )