ACMC commited on
Commit
dddf315
1 Parent(s): 05e7fc2

Do not remove file

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -178,10 +178,10 @@ The {model_role} and the {user_role} can send multiple messages in a row, as a J
178
  def remove_file_and_hide_button(file_path):
179
  import os
180
 
181
- try:
182
- os.remove(file_path)
183
- except Exception as e:
184
- logger.info(f"Error removing file {file_path}: {e}")
185
 
186
  return gr.update(visible=False)
187
 
 
178
  def remove_file_and_hide_button(file_path):
179
  import os
180
 
181
+ # try:
182
+ # os.remove(file_path)
183
+ # except Exception as e:
184
+ # logger.info(f"Error removing file {file_path}: {e}")
185
 
186
  return gr.update(visible=False)
187