Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +8 -1
src/streamlit_app.py
CHANGED
|
@@ -172,7 +172,14 @@ if movie_id:
|
|
| 172 |
poster_url, tmdb_link = get_tmdb_data(movie_info["clean_title"], movie_info["year"])
|
| 173 |
col1, col2 = st.columns([1, 3])
|
| 174 |
with col1:
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
with col2:
|
| 177 |
st.subheader("Details")
|
| 178 |
st.write(f"**Genres:** {movie_info['genres']}")
|
|
|
|
| 172 |
poster_url, tmdb_link = get_tmdb_data(movie_info["clean_title"], movie_info["year"])
|
| 173 |
col1, col2 = st.columns([1, 3])
|
| 174 |
with col1:
|
| 175 |
+
if poster_url and "placeholder.com" not in poster_url:
|
| 176 |
+
st.image(poster_url, use_container_width=True)
|
| 177 |
+
else:
|
| 178 |
+
st.markdown("""
|
| 179 |
+
<div style='width:100%;border:2px dashed gray;height:450px;display:flex;align-items:center;justify-content:center;color:gray;'>
|
| 180 |
+
No picture available
|
| 181 |
+
</div>
|
| 182 |
+
""", unsafe_allow_html=True)
|
| 183 |
with col2:
|
| 184 |
st.subheader("Details")
|
| 185 |
st.write(f"**Genres:** {movie_info['genres']}")
|