OuroborosM commited on
Commit
4a21233
·
1 Parent(s): 4479d76

update clearall

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1350,6 +1350,8 @@ def clearall():
1350
  file_path = "output.log"
1351
  if os.path.isfile(file_path):
1352
  os.remove(file_path)
 
 
1353
  return [[], gr.update(visible=True), gr.update(visible=False), []]
1354
 
1355
  def retry(history3):
 
1350
  file_path = "output.log"
1351
  if os.path.isfile(file_path):
1352
  os.remove(file_path)
1353
+ with open(file_path, "w") as file:
1354
+ print(f"File '{file_path}' has been created.")
1355
  return [[], gr.update(visible=True), gr.update(visible=False), []]
1356
 
1357
  def retry(history3):