heymenn commited on
Commit
4b0c9a9
1 Parent(s): b7de879

Update excel_chat.py

Browse files
Files changed (1) hide show
  1. excel_chat.py +4 -2
excel_chat.py CHANGED
@@ -236,7 +236,8 @@ def chat_with_mistral(source_cols, dest_col, prompt, excel_file, url, search_col
236
 
237
  try:
238
  if cpt == checkpoint:
239
- df.to_excel(user['save_name']+".xlsx", index=False)
 
240
  checkpoint += 50
241
 
242
  except Exception as e:
@@ -246,7 +247,8 @@ def chat_with_mistral(source_cols, dest_col, prompt, excel_file, url, search_col
246
  # progress((index+1)/len(df),desc=f'Request {index+1}/{len(df)}!')
247
 
248
  df.to_excel(file_name, index=False)
249
- df.to_excel(user['save_name']+".xlsx", index=False)
 
250
 
251
  zip_file_path = 'config_file.zip'
252
 
 
236
 
237
  try:
238
  if cpt == checkpoint:
239
+ save_name = user['save_name']+".xlsx"
240
+ df.to_excel(save_name, index=False)
241
  checkpoint += 50
242
 
243
  except Exception as e:
 
247
  # progress((index+1)/len(df),desc=f'Request {index+1}/{len(df)}!')
248
 
249
  df.to_excel(file_name, index=False)
250
+ save_name = user['save_name']+".xlsx"
251
+ df.to_excel(save_name, index=False)
252
 
253
  zip_file_path = 'config_file.zip'
254