Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -265,12 +265,13 @@ def run_app():
|
|
265 |
# Find and display best movies by genre
|
266 |
best_movies_by_genre = find_best_movies_by_genre(conn)
|
267 |
fig_global_map = plot_global_map()
|
|
|
268 |
# Layout for best movies by genre in two columns
|
269 |
col1, col2 = st.columns(2)
|
270 |
|
271 |
with col1:
|
272 |
-
st.subheader('
|
273 |
-
st.
|
274 |
with col2:
|
275 |
# Create genre word cloud
|
276 |
st.subheader('Global Map of Films')
|
@@ -278,18 +279,20 @@ def run_app():
|
|
278 |
|
279 |
|
280 |
|
281 |
-
|
282 |
fig_avg_rating_by_genre = fetch_and_plot_average_rating_by_genre(conn)
|
283 |
|
284 |
# Layout for Plotly charts in three columns
|
285 |
col1, col2, col3 = st.columns(3)
|
286 |
|
287 |
with col1:
|
288 |
-
|
|
|
|
|
289 |
|
290 |
with col2:
|
291 |
-
|
292 |
-
|
293 |
|
294 |
with col3:
|
295 |
st.subheader('Average Rating by Genre') # Placeholder, replace with actual chart
|
|
|
265 |
# Find and display best movies by genre
|
266 |
best_movies_by_genre = find_best_movies_by_genre(conn)
|
267 |
fig_global_map = plot_global_map()
|
268 |
+
fig_genre_movie_releases = plot_stacked_genre_movie_releases(genre_counts)
|
269 |
# Layout for best movies by genre in two columns
|
270 |
col1, col2 = st.columns(2)
|
271 |
|
272 |
with col1:
|
273 |
+
st.subheader('Genre Movie Releases by Year')
|
274 |
+
st.plotly_chart(fig_genre_movie_releases)
|
275 |
with col2:
|
276 |
# Create genre word cloud
|
277 |
st.subheader('Global Map of Films')
|
|
|
279 |
|
280 |
|
281 |
|
282 |
+
|
283 |
fig_avg_rating_by_genre = fetch_and_plot_average_rating_by_genre(conn)
|
284 |
|
285 |
# Layout for Plotly charts in three columns
|
286 |
col1, col2, col3 = st.columns(3)
|
287 |
|
288 |
with col1:
|
289 |
+
st.subheader('Best Movies by Genre')
|
290 |
+
st.dataframe(best_movies_by_genre)
|
291 |
+
|
292 |
|
293 |
with col2:
|
294 |
+
create_genre_wordcloud(conn)
|
295 |
+
|
296 |
|
297 |
with col3:
|
298 |
st.subheader('Average Rating by Genre') # Placeholder, replace with actual chart
|