Spaces:
Sleeping
Sleeping
how about now
Browse files
app.py
CHANGED
@@ -124,6 +124,8 @@ if submitted:
|
|
124 |
print(image_path)
|
125 |
image_url = f"https://huggingface.co/datasets/aifred-smart-life-coach/capstone-images/resolve/main/{image_path}"
|
126 |
print(image_url)
|
|
|
|
|
127 |
st.image(image_url, width=300)
|
128 |
gender = st.selectbox("Gender", [
|
129 |
"Male",
|
|
|
124 |
print(image_path)
|
125 |
image_url = f"https://huggingface.co/datasets/aifred-smart-life-coach/capstone-images/resolve/main/{image_path}"
|
126 |
print(image_url)
|
127 |
+
# url has whitespace, replace it with %20
|
128 |
+
image_url = image_url.replace(" ", "%20")
|
129 |
st.image(image_url, width=300)
|
130 |
gender = st.selectbox("Gender", [
|
131 |
"Male",
|