Debugging texts
Browse files
app.py
CHANGED
|
@@ -46,20 +46,25 @@ uploaded_file = render_upload_section()
|
|
| 46 |
|
| 47 |
if uploaded_file:
|
| 48 |
image_bytes = uploaded_file.read()
|
| 49 |
-
st.
|
| 50 |
|
| 51 |
image = Image.open(io.BytesIO(image_bytes))
|
| 52 |
|
| 53 |
-
st.
|
| 54 |
|
| 55 |
col1, col2 = st.columns([1, 2])
|
| 56 |
|
|
|
|
|
|
|
| 57 |
with col1:
|
| 58 |
st.subheader("Uploaded Card")
|
| 59 |
st.image(image, use_column_width=True)
|
| 60 |
|
|
|
|
|
|
|
| 61 |
with col2:
|
| 62 |
with st.spinner("Analyzing card..."):
|
|
|
|
| 63 |
result = predict(image_bytes, uploaded_file.name)
|
| 64 |
|
| 65 |
if "error_type" in result:
|
|
|
|
| 46 |
|
| 47 |
if uploaded_file:
|
| 48 |
image_bytes = uploaded_file.read()
|
| 49 |
+
st.caption("Reading card...")
|
| 50 |
|
| 51 |
image = Image.open(io.BytesIO(image_bytes))
|
| 52 |
|
| 53 |
+
st.caption("Successfully uploaded card")
|
| 54 |
|
| 55 |
col1, col2 = st.columns([1, 2])
|
| 56 |
|
| 57 |
+
st.caption("MAde 3 columns")
|
| 58 |
+
|
| 59 |
with col1:
|
| 60 |
st.subheader("Uploaded Card")
|
| 61 |
st.image(image, use_column_width=True)
|
| 62 |
|
| 63 |
+
st.caption("Showing card")
|
| 64 |
+
|
| 65 |
with col2:
|
| 66 |
with st.spinner("Analyzing card..."):
|
| 67 |
+
st.caption("Predicting...")
|
| 68 |
result = predict(image_bytes, uploaded_file.name)
|
| 69 |
|
| 70 |
if "error_type" in result:
|