lenawilli commited on
Commit
832541d
·
verified ·
1 Parent(s): 10b86b3

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +8 -8
src/streamlit_app.py CHANGED
@@ -208,8 +208,6 @@ if movie_id:
208
  No picture available
209
  </div>
210
  """, unsafe_allow_html=True)
211
- except Exception as e:
212
- st.error(f"Could not load movie details: {e}")
213
 
214
  with col2:
215
  st.subheader("Details")
@@ -233,8 +231,12 @@ if movie_id:
233
  })
234
 
235
  st.success("Rating saved.")
236
- st.rerun()
237
-
 
 
 
 
238
  elif page:
239
  st.title("Rate Random Movies")
240
 
@@ -264,7 +266,6 @@ elif page:
264
  # Bewertungsauswahl
265
  rating = st.radio("Rate this movie:", [1, 2, 3, 4, 5], horizontal=True, key=f"rating_{movie_id}")
266
 
267
- # Zwei Buttons in zwei Spalten – ganz ohne Form
268
  col_submit, col_skip = st.columns([1, 1])
269
 
270
  with col_submit:
@@ -280,7 +281,7 @@ elif page:
280
  with col_skip:
281
  if st.button("Didn't Watch", key=f"skip_{movie_id}"):
282
  st.rerun()
283
-
284
  elif search_query:
285
  st.title(f"Search Results for '{search_query}'")
286
 
@@ -532,5 +533,4 @@ else:
532
 
533
 
534
  else:
535
- st.info("Rate a few movies to get recommendations.")
536
-
 
208
  No picture available
209
  </div>
210
  """, unsafe_allow_html=True)
 
 
211
 
212
  with col2:
213
  st.subheader("Details")
 
231
  })
232
 
233
  st.success("Rating saved.")
234
+ st.rerun()
235
+
236
+ except Exception as e:
237
+ st.error(f"Could not load movie details: {e}")
238
+
239
+
240
  elif page:
241
  st.title("Rate Random Movies")
242
 
 
266
  # Bewertungsauswahl
267
  rating = st.radio("Rate this movie:", [1, 2, 3, 4, 5], horizontal=True, key=f"rating_{movie_id}")
268
 
 
269
  col_submit, col_skip = st.columns([1, 1])
270
 
271
  with col_submit:
 
281
  with col_skip:
282
  if st.button("Didn't Watch", key=f"skip_{movie_id}"):
283
  st.rerun()
284
+
285
  elif search_query:
286
  st.title(f"Search Results for '{search_query}'")
287
 
 
533
 
534
 
535
  else:
536
+ st.info("Rate a few movies to get recommendations.")