fkonovalenko commited on
Commit
41a06d0
1 Parent(s): e67b27a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -91,8 +91,11 @@ def save(btn):
91
 
92
 
93
  def main():
94
- shutil.rmtree(os.path.join(os.path.dirname(__file__), 'result/'), ignore_errors=True)
95
- os.mkdir(os.path.join(os.path.dirname(__file__), 'result/'))
 
 
 
96
  GlobalState.data = GlobalState.default_data
97
  with gr.Blocks() as demo:
98
  with gr.Tab("Load"):
 
91
 
92
 
93
  def main():
94
+ # shutil.rmtree(os.path.join(os.path.dirname(__file__), 'result/'), ignore_errors=True)
95
+ try:
96
+ os.mkdir(os.path.join(os.path.dirname(__file__), 'result/'))
97
+ except FileExistsError:
98
+ pass
99
  GlobalState.data = GlobalState.default_data
100
  with gr.Blocks() as demo:
101
  with gr.Tab("Load"):