Spaces:
Sleeping
Sleeping
Update excel_chat.py
Browse files- excel_chat.py +2 -1
excel_chat.py
CHANGED
|
@@ -236,7 +236,7 @@ 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("
|
| 240 |
checkpoint += 50
|
| 241 |
|
| 242 |
except Exception as e:
|
|
@@ -246,6 +246,7 @@ 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 |
|
| 250 |
zip_file_path = 'config_file.zip'
|
| 251 |
|
|
|
|
| 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 |
# 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 |
|