Spaces:
Running
Running
app.py
CHANGED
@@ -10,6 +10,13 @@ from streamlit_drawable_canvas import st_canvas
|
|
10 |
from modules.streamlit_utils import *
|
11 |
from glob import glob
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
from streamlit_image_annotation import detection
|
14 |
from modules.toXML import create_XML
|
15 |
|
|
|
10 |
from modules.streamlit_utils import *
|
11 |
from glob import glob
|
12 |
|
13 |
+
import os
|
14 |
+
import subprocess
|
15 |
+
|
16 |
+
# Run the setup script if the package directory does not exist
|
17 |
+
if not os.path.exists('Streamlit-Image-Annotation'):
|
18 |
+
subprocess.run(['bash', 'setup.sh'], check=True)
|
19 |
+
|
20 |
from streamlit_image_annotation import detection
|
21 |
from modules.toXML import create_XML
|
22 |
|