Leyo commited on
Commit
3e80063
1 Parent(s): 856c1fc

update logging

Browse files
Files changed (1) hide show
  1. app_dialogue.py +1 -1
app_dialogue.py CHANGED
@@ -306,7 +306,7 @@ def prompt_list_to_tgi_input(prompt_list: List[str]) -> str:
306
  base64_img = pil_to_base64(elem_pil, resize=True)
307
  result_string_input += f"![]({base64_img})"
308
  except Exception as e:
309
- print(f"Image can't be loaded because of exception {e}")
310
  else:
311
  result_string_input += elem
312
  return result_string_input
 
306
  base64_img = pil_to_base64(elem_pil, resize=True)
307
  result_string_input += f"![]({base64_img})"
308
  except Exception as e:
309
+ logger.error(f"Image can't be loaded because of exception {e}")
310
  else:
311
  result_string_input += elem
312
  return result_string_input