Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +8 -7
src/streamlit_app.py
CHANGED
|
@@ -258,12 +258,6 @@ def main():
|
|
| 258 |
index=0
|
| 259 |
)
|
| 260 |
|
| 261 |
-
selected_ratings = st.multiselect(
|
| 262 |
-
"Ratings",
|
| 263 |
-
options=all_ratings,
|
| 264 |
-
default=[]
|
| 265 |
-
)
|
| 266 |
-
|
| 267 |
selected_genres = st.multiselect(
|
| 268 |
"Genres",
|
| 269 |
options=all_genres,
|
|
@@ -300,6 +294,14 @@ def main():
|
|
| 300 |
|
| 301 |
st.subheader("Optional Filters")
|
| 302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 303 |
# Director filter
|
| 304 |
director_filter = st.text_input(
|
| 305 |
"Director Name",
|
|
@@ -358,7 +360,6 @@ def main():
|
|
| 358 |
|
| 359 |
with detail_col2:
|
| 360 |
st.write(f"**🎬 Genre:** {content.get('listed_in', 'N/A')}")
|
| 361 |
-
# Fix cast handling to prevent NoneType error
|
| 362 |
cast = content.get('cast')
|
| 363 |
cast_display = cast[:100] + "..." if cast and len(cast) > 100 else cast if cast else "N/A"
|
| 364 |
st.write(f"**👥 Cast:** {cast_display}")
|
|
|
|
| 258 |
index=0
|
| 259 |
)
|
| 260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
selected_genres = st.multiselect(
|
| 262 |
"Genres",
|
| 263 |
options=all_genres,
|
|
|
|
| 294 |
|
| 295 |
st.subheader("Optional Filters")
|
| 296 |
|
| 297 |
+
# Rating filter (moved to optional)
|
| 298 |
+
selected_ratings = st.multiselect(
|
| 299 |
+
"Ratings",
|
| 300 |
+
options=all_ratings,
|
| 301 |
+
default=[],
|
| 302 |
+
help="Filter by content rating"
|
| 303 |
+
)
|
| 304 |
+
|
| 305 |
# Director filter
|
| 306 |
director_filter = st.text_input(
|
| 307 |
"Director Name",
|
|
|
|
| 360 |
|
| 361 |
with detail_col2:
|
| 362 |
st.write(f"**🎬 Genre:** {content.get('listed_in', 'N/A')}")
|
|
|
|
| 363 |
cast = content.get('cast')
|
| 364 |
cast_display = cast[:100] + "..." if cast and len(cast) > 100 else cast if cast else "N/A"
|
| 365 |
st.write(f"**👥 Cast:** {cast_display}")
|