Spaces:
Sleeping
Sleeping
- Corriger.py +3 -0
Corriger.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
import streamlit_authenticator as stauth
|
3 |
from code.functions import pipeline_svg
|
4 |
from PIL import Image
|
@@ -75,6 +76,8 @@ elif authentication_status:
|
|
75 |
dict_kernel_type = {"Ellipse": cv2.MORPH_ELLIPSE, "Rectangle": cv2.MORPH_RECT, "Cross": cv2.MORPH_CROSS}
|
76 |
kernel_type = dict_kernel_type[kernel_type_str]
|
77 |
|
|
|
|
|
78 |
for uploaded_file in uploaded_files:
|
79 |
col1, col2, col3 = st.columns([1, 1, 1])
|
80 |
col3.markdown("---")
|
|
|
1 |
import streamlit as st
|
2 |
+
import os
|
3 |
import streamlit_authenticator as stauth
|
4 |
from code.functions import pipeline_svg
|
5 |
from PIL import Image
|
|
|
76 |
dict_kernel_type = {"Ellipse": cv2.MORPH_ELLIPSE, "Rectangle": cv2.MORPH_RECT, "Cross": cv2.MORPH_CROSS}
|
77 |
kernel_type = dict_kernel_type[kernel_type_str]
|
78 |
|
79 |
+
os.mkdir("images")
|
80 |
+
|
81 |
for uploaded_file in uploaded_files:
|
82 |
col1, col2, col3 = st.columns([1, 1, 1])
|
83 |
col3.markdown("---")
|