Spaces:
Running
Running
Fig Image Size
Browse files
README.md
CHANGED
|
@@ -1,20 +1,13 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Captcha Demo
|
| 3 |
-
emoji: 🚀
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
-
sdk: docker
|
| 7 |
-
app_port: 8501
|
| 8 |
-
tags:
|
| 9 |
-
- streamlit
|
| 10 |
-
pinned: false
|
| 11 |
-
short_description: CAPTCHA Models Showcase
|
| 12 |
-
license: mit
|
| 13 |
-
---
|
| 14 |
-
|
| 15 |
-
# Welcome to Streamlit!
|
| 16 |
-
|
| 17 |
-
Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
|
| 18 |
-
|
| 19 |
-
If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
|
| 20 |
-
forums](https://discuss.streamlit.io).
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Captcha Demo
|
| 3 |
+
emoji: 🚀
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 8501
|
| 8 |
+
tags:
|
| 9 |
+
- streamlit
|
| 10 |
+
pinned: false
|
| 11 |
+
short_description: CAPTCHA Models Showcase
|
| 12 |
+
license: mit
|
| 13 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
|
@@ -231,7 +231,8 @@ with col2:
|
|
| 231 |
# Display Side by Side (Input vs Prediction)
|
| 232 |
res_col1, res_col2 = st.columns(2)
|
| 233 |
with res_col1:
|
| 234 |
-
st.
|
|
|
|
| 235 |
|
| 236 |
with res_col2:
|
| 237 |
# Character-level coloring
|
|
@@ -309,7 +310,8 @@ with col_sec2_2:
|
|
| 309 |
# Display Side by Side (Input vs Prediction)
|
| 310 |
res2_col1, res2_col2 = st.columns(2)
|
| 311 |
with res2_col1:
|
| 312 |
-
st.
|
|
|
|
| 313 |
|
| 314 |
with res2_col2:
|
| 315 |
# Render logic
|
|
|
|
| 231 |
# Display Side by Side (Input vs Prediction)
|
| 232 |
res_col1, res_col2 = st.columns(2)
|
| 233 |
with res_col1:
|
| 234 |
+
with st.container(height=300, border=False):
|
| 235 |
+
st.image(transformed_img, caption=f"Original: '{captcha_text}'", use_container_width=True)
|
| 236 |
|
| 237 |
with res_col2:
|
| 238 |
# Character-level coloring
|
|
|
|
| 310 |
# Display Side by Side (Input vs Prediction)
|
| 311 |
res2_col1, res2_col2 = st.columns(2)
|
| 312 |
with res2_col1:
|
| 313 |
+
with st.container(height=300, border=False):
|
| 314 |
+
st.image(image_to_predict, caption="Uploaded Image", use_container_width=True)
|
| 315 |
|
| 316 |
with res2_col2:
|
| 317 |
# Render logic
|