Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,41 +1,43 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
# Define a dictionary with movie genres, recommendations, and
|
| 4 |
movie_recommendations = {
|
| 5 |
"action": [
|
| 6 |
-
{"title": "Spider-Man: No Way Home", "image": "
|
| 7 |
-
{"title": "No Time to Die", "image": "
|
| 8 |
-
{"title": "F9: The Fast Saga", "image": "
|
| 9 |
],
|
| 10 |
"comedy": [
|
| 11 |
-
{"title": "Barbie", "image": "
|
| 12 |
-
{"title": "Free Guy", "image": "
|
| 13 |
-
{"title": "The Mitchells vs. the Machines", "image": "
|
| 14 |
],
|
| 15 |
"drama": [
|
| 16 |
-
{"title": "Nomadland", "image": "
|
| 17 |
-
{"title": "The Father", "image": "
|
| 18 |
-
{"title": "Promising Young Woman", "image": "
|
| 19 |
],
|
| 20 |
"sci-fi": [
|
| 21 |
-
{"title": "Dune", "image": "
|
| 22 |
-
{"title": "Tenet", "image": "
|
| 23 |
-
{"title": "The Matrix Resurrections", "image": "
|
| 24 |
],
|
| 25 |
"horror": [
|
| 26 |
-
{"title": "A Quiet Place Part II", "image": "
|
| 27 |
-
{"title": "Candyman", "image": "
|
| 28 |
-
{"title": "Malignant", "image": "
|
| 29 |
],
|
| 30 |
"romance": [
|
| 31 |
-
{"title": "The Hating Game", "image": "
|
| 32 |
-
{"title": "To All the Boys: Always and Forever", "image": "
|
| 33 |
-
{"title": "After We Fell", "image": "
|
| 34 |
],
|
| 35 |
"animation": [
|
| 36 |
-
{"title": "Inside Out 2", "image": "
|
| 37 |
-
{"title": "Soul", "image": "
|
| 38 |
-
{"title": "
|
|
|
|
|
|
|
| 39 |
]
|
| 40 |
}
|
| 41 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
# Define a dictionary with movie genres, recommendations, and image URLs (movies from 2020 and after)
|
| 4 |
movie_recommendations = {
|
| 5 |
"action": [
|
| 6 |
+
{"title": "Spider-Man: No Way Home", "image": "https://upload.wikimedia.org/wikipedia/en/0/0c/Spider-Man_No_Way_Home_poster.jpg"},
|
| 7 |
+
{"title": "No Time to Die", "image": "https://upload.wikimedia.org/wikipedia/en/6/6d/No_Time_to_Die_poster.jpg"},
|
| 8 |
+
{"title": "F9: The Fast Saga", "image": "https://upload.wikimedia.org/wikipedia/en/5/52/F9_poster.jpg"},
|
| 9 |
],
|
| 10 |
"comedy": [
|
| 11 |
+
{"title": "Barbie", "image": "https://upload.wikimedia.org/wikipedia/en/a/a5/Barbie_%282023_film%29_poster.jpg"},
|
| 12 |
+
{"title": "Free Guy", "image": "https://upload.wikimedia.org/wikipedia/en/9/92/Free_Guy_poster.jpg"},
|
| 13 |
+
{"title": "The Mitchells vs. the Machines", "image": "https://upload.wikimedia.org/wikipedia/en/8/81/The_Mitchells_vs_the_Machines_poster.jpg"},
|
| 14 |
],
|
| 15 |
"drama": [
|
| 16 |
+
{"title": "Nomadland", "image": "https://upload.wikimedia.org/wikipedia/en/5/53/Nomadland_poster.jpg"},
|
| 17 |
+
{"title": "The Father", "image": "https://upload.wikimedia.org/wikipedia/en/7/7f/The_Father_poster.jpg"},
|
| 18 |
+
{"title": "Promising Young Woman", "image": "https://upload.wikimedia.org/wikipedia/en/c/c5/Promising_Young_Woman_poster.jpg"},
|
| 19 |
],
|
| 20 |
"sci-fi": [
|
| 21 |
+
{"title": "Dune", "image": "https://upload.wikimedia.org/wikipedia/en/b/b6/Dune_%282020_film%29_poster.jpg"},
|
| 22 |
+
{"title": "Tenet", "image": "https://upload.wikimedia.org/wikipedia/en/4/4a/Tenet_%282020_film%29_poster.jpg"},
|
| 23 |
+
{"title": "The Matrix Resurrections", "image": "https://upload.wikimedia.org/wikipedia/en/9/94/The_Matrix_Resurrections_poster.jpg"},
|
| 24 |
],
|
| 25 |
"horror": [
|
| 26 |
+
{"title": "A Quiet Place Part II", "image": "https://upload.wikimedia.org/wikipedia/en/3/3d/A_Quiet_Place_Part_II_poster.jpg"},
|
| 27 |
+
{"title": "Candyman", "image": "https://upload.wikimedia.org/wikipedia/en/c/c5/Candyman_2021_poster.jpg"},
|
| 28 |
+
{"title": "Malignant", "image": "https://upload.wikimedia.org/wikipedia/en/2/2e/Malignant_poster.jpg"},
|
| 29 |
],
|
| 30 |
"romance": [
|
| 31 |
+
{"title": "The Hating Game", "image": "https://upload.wikimedia.org/wikipedia/en/6/69/The_Hating_Game_poster.jpg"},
|
| 32 |
+
{"title": "To All the Boys: Always and Forever", "image": "https://upload.wikimedia.org/wikipedia/en/a/a0/To_All_the_Boys_Always_and_Forever_poster.jpg"},
|
| 33 |
+
{"title": "After We Fell", "image": "https://upload.wikimedia.org/wikipedia/en/c/c9/After_We_Fell_poster.jpg"},
|
| 34 |
],
|
| 35 |
"animation": [
|
| 36 |
+
{"title": "Inside Out 2", "image": "https://upload.wikimedia.org/wikipedia/en/d/d2/Inside_Out_2.jpg"}, # Use an example URL, update when available
|
| 37 |
+
{"title": "Soul", "image": "https://upload.wikimedia.org/wikipedia/en/e/e9/Soul_%282020_film%29_poster.jpg"},
|
| 38 |
+
{"title": "Raya and the Last Dragon", "image": "https://upload.wikimedia.org/wikipedia/en/a/ab/Raya_and_the_Last_Dragon_poster.jpg"},
|
| 39 |
+
{"title": "The Boy and the Heron", "image": "https://upload.wikimedia.org/wikipedia/en/4/42/The_Boy_and_the_Heron_poster.jpg"},
|
| 40 |
+
{"title": "Luca", "image": "https://upload.wikimedia.org/wikipedia/en/2/25/Luca_%282021_film%29_poster.jpg"},
|
| 41 |
]
|
| 42 |
}
|
| 43 |
|