yusiff commited on
Commit
a269c96
·
verified ·
1 Parent(s): 9db7399

Update app4.py

Browse files
Files changed (1) hide show
  1. app4.py +3 -3
app4.py CHANGED
@@ -143,7 +143,7 @@ else:
143
  st.markdown(f"### Hello, {st.session_state.get('name', 'Guest')} 👋", unsafe_allow_html=True)
144
 
145
  if st.session_state.selected_section == "Popular Movies":
146
- with st.expander("🔥 Popular Movies", expanded=True):
147
  popular = fetch_popular_movies()
148
  if popular:
149
  cols = st.columns(5)
@@ -157,7 +157,7 @@ else:
157
  st.session_state[f"show_details_{i}"] = False
158
 
159
  # زر التفاصيل
160
- if st.button("📄 Details", key=f"popular_details_{i}"):
161
  # تغيير حالة الزر عند الضغط عليه
162
  st.session_state[f"show_details_{i}"] = not st.session_state[f"show_details_{i}"]
163
 
@@ -219,7 +219,7 @@ else:
219
  if selected_movie not in st.session_state.show_details:
220
  st.session_state.show_details[selected_movie] = True # قيمة افتراضية للإخفاء
221
 
222
- if st.button(f"📄 Show/Hide Details for {selected_movie}"):
223
  st.session_state.show_details[selected_movie] = not st.session_state.show_details[selected_movie]
224
 
225
  # عرض التفاصيل بناءً على حالة الزر
 
143
  st.markdown(f"### Hello, {st.session_state.get('name', 'Guest')} 👋", unsafe_allow_html=True)
144
 
145
  if st.session_state.selected_section == "Popular Movies":
146
+ with st.expander("Popular Movies", expanded=True):
147
  popular = fetch_popular_movies()
148
  if popular:
149
  cols = st.columns(5)
 
157
  st.session_state[f"show_details_{i}"] = False
158
 
159
  # زر التفاصيل
160
+ if st.button(" Details 📄", key=f"popular_details_{i}"):
161
  # تغيير حالة الزر عند الضغط عليه
162
  st.session_state[f"show_details_{i}"] = not st.session_state[f"show_details_{i}"]
163
 
 
219
  if selected_movie not in st.session_state.show_details:
220
  st.session_state.show_details[selected_movie] = True # قيمة افتراضية للإخفاء
221
 
222
+ if st.button(f"Show/Hide Details for {selected_movie} 📄"):
223
  st.session_state.show_details[selected_movie] = not st.session_state.show_details[selected_movie]
224
 
225
  # عرض التفاصيل بناءً على حالة الزر