Almaatla commited on
Commit
f0fabc9
1 Parent(s): d32c258

Update excel_chat.py

Browse files
Files changed (1) hide show
  1. excel_chat.py +1 -1
excel_chat.py CHANGED
@@ -226,7 +226,7 @@ def chat_with_mistral(source_cols, dest_col, prompt, excel_file, url, search_col
226
 
227
  try:
228
  llm_answer,gloabal_keys = ask_llm(prompt[0], concatenated_content, client, user, gloabal_keys)
229
- except error:
230
  llm_answer = "unhandled global error"
231
 
232
  print(f"{cpt}/{len(filtred_df)}\nQUERY:\n{prompt[0]}\nCONTENT:\n{concatenated_content[:200]}...\n\nANSWER:\n{llm_answer}")
 
226
 
227
  try:
228
  llm_answer,gloabal_keys = ask_llm(prompt[0], concatenated_content, client, user, gloabal_keys)
229
+ except Exception:
230
  llm_answer = "unhandled global error"
231
 
232
  print(f"{cpt}/{len(filtred_df)}\nQUERY:\n{prompt[0]}\nCONTENT:\n{concatenated_content[:200]}...\n\nANSWER:\n{llm_answer}")