Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,9 @@ st.set_page_config(layout="wide")
|
|
| 15 |
dbx = dropbox.Dropbox(st.secrets["dbx"])
|
| 16 |
password = st.secrets["dbx"]
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Function to convert the canvas drawing to a binary mask
|
| 19 |
def canvas_to_mask(canvas_result, img_shape):
|
| 20 |
if canvas_result is not None and canvas_result.image_data is not None:
|
|
|
|
| 15 |
dbx = dropbox.Dropbox(st.secrets["dbx"])
|
| 16 |
password = st.secrets["dbx"]
|
| 17 |
|
| 18 |
+
if not os.path.exists("data"):
|
| 19 |
+
os.mkdir("data")
|
| 20 |
+
|
| 21 |
# Function to convert the canvas drawing to a binary mask
|
| 22 |
def canvas_to_mask(canvas_result, img_shape):
|
| 23 |
if canvas_result is not None and canvas_result.image_data is not None:
|