Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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"):
|