Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
2 |
import requests
|
3 |
import base64
|
4 |
from PIL import Image
|
@@ -71,8 +73,8 @@ st.markdown(
|
|
71 |
margin-bottom: 40px;
|
72 |
}
|
73 |
</style>
|
74 |
-
<div class="main-header">๐ฎ
|
75 |
-
<div class="sub-header">
|
76 |
""",
|
77 |
unsafe_allow_html=True
|
78 |
)
|
@@ -92,7 +94,7 @@ if img_file_buffer:
|
|
92 |
# Display captured image
|
93 |
image = Image.open(img_file_buffer)
|
94 |
st.markdown(styled_header("๐ธ Your Captured Image:"), unsafe_allow_html=True)
|
95 |
-
st.image(image, caption="Captured Image", use_column_width=True)
|
96 |
|
97 |
st.markdown(styled_header("๐ค Image Analysis:"), unsafe_allow_html=True)
|
98 |
with st.spinner("๐ The AI is analyzing your image. Please wait..."):
|
|
|
1 |
import streamlit as st
|
2 |
+
import warnings
|
3 |
+
warnings.filterwarnings('ignore')
|
4 |
import requests
|
5 |
import base64
|
6 |
from PIL import Image
|
|
|
73 |
margin-bottom: 40px;
|
74 |
}
|
75 |
</style>
|
76 |
+
<div class="main-header">๐ฎ ImageX</div>
|
77 |
+
<div class="sub-header">Image Data Uncovered</div>
|
78 |
""",
|
79 |
unsafe_allow_html=True
|
80 |
)
|
|
|
94 |
# Display captured image
|
95 |
image = Image.open(img_file_buffer)
|
96 |
st.markdown(styled_header("๐ธ Your Captured Image:"), unsafe_allow_html=True)
|
97 |
+
#st.image(image, caption="Captured Image", use_column_width=True)
|
98 |
|
99 |
st.markdown(styled_header("๐ค Image Analysis:"), unsafe_allow_html=True)
|
100 |
with st.spinner("๐ The AI is analyzing your image. Please wait..."):
|