YchKhan commited on
Commit
a747dde
1 Parent(s): 01936b7

misstyping

Browse files
Files changed (1) hide show
  1. excel_chat.py +1 -1
excel_chat.py CHANGED
@@ -89,7 +89,7 @@ def chat_with_mistral(source_cols, dest_col, prompt, excel_file, url, search_col
89
  print(f'xlsxfile = {excel_file}')
90
  df = pd.read_excel(excel_file)
91
  df[dest_col] = ""
92
- if file:
93
  file_name = excel_file.split('.xlsx')[0] + "with_" + dest_col.replace(' ', '_') + ".xlsx"
94
  elif url.endswith('Docs/', 'Docs'):
95
  file_name = url.split("/Docs")[0].split("/")[-1] + ".xlsx"
 
89
  print(f'xlsxfile = {excel_file}')
90
  df = pd.read_excel(excel_file)
91
  df[dest_col] = ""
92
+ if excel_file:
93
  file_name = excel_file.split('.xlsx')[0] + "with_" + dest_col.replace(' ', '_') + ".xlsx"
94
  elif url.endswith('Docs/', 'Docs'):
95
  file_name = url.split("/Docs")[0].split("/")[-1] + ".xlsx"