Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,24 @@ import os
|
|
| 3 |
import glob
|
| 4 |
import cv2
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
import glob
|
| 4 |
import cv2
|
| 5 |
|
| 6 |
+
image_emoji = '📷'
|
| 7 |
+
model_emoji = '⚙️'
|
| 8 |
+
profile_emoji = '📈'
|
| 9 |
+
st.title('PantoScan')
|
| 10 |
+
|
| 11 |
+
tab1, tab2, tab3 = st.tabs([f'{image_emoji} Image', f'{model_emoji} Mask', f'{profile_emoji} Measurement'])
|
| 12 |
+
|
| 13 |
+
with tab1:
|
| 14 |
+
st.header(f'Source Image')
|
| 15 |
+
img_array = cv2.imread(glob.glob(f'{os.getcwd()}/*.png')[0])
|
| 16 |
+
st.image(img_array)
|
| 17 |
+
|
| 18 |
+
with tab2:
|
| 19 |
+
st.header(f'Model Output')
|
| 20 |
+
#st.image("https://static.streamlit.io/examples/dog.jpg", width=200)
|
| 21 |
+
|
| 22 |
+
with tab3:
|
| 23 |
+
st.header(f'Profile Height')
|
| 24 |
+
#st.image("https://static.streamlit.io/examples/owl.jpg", width=200)
|
| 25 |
+
|
| 26 |
+
|