Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ if not os.path.exists(lock_file_path):
|
|
20 |
with open(lock_file_path, "w") as f:
|
21 |
f.write("Running!")
|
22 |
else:
|
23 |
-
print("Streamlit app is already running.")
|
|
|
24 |
|
25 |
try:
|
26 |
os.mkdir("data")
|
|
|
20 |
with open(lock_file_path, "w") as f:
|
21 |
f.write("Running!")
|
22 |
else:
|
23 |
+
print("Streamlit app is already running, exiting this instance.")
|
24 |
+
exit()
|
25 |
|
26 |
try:
|
27 |
os.mkdir("data")
|