JanaAlbader commited on
Commit
5c788d1
·
verified ·
1 Parent(s): 349741c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -22
app.py CHANGED
@@ -1,41 +1,43 @@
1
  import gradio as gr
2
 
3
- # Define a dictionary with movie genres, recommendations, and local image paths (movies from 2020 and after)
4
  movie_recommendations = {
5
  "action": [
6
- {"title": "Spider-Man: No Way Home", "image": "images/spider-man.jfif"},
7
- {"title": "No Time to Die", "image": "images/no time to die.jfif"},
8
- {"title": "F9: The Fast Saga", "image": "images/f9.jpg"},
9
  ],
10
  "comedy": [
11
- {"title": "Barbie", "image": "images/barbie.jpg"},
12
- {"title": "Free Guy", "image": "images/free_guy.jpg"},
13
- {"title": "The Mitchells vs. the Machines", "image": "images/mitchells_vs_machines.jpg"},
14
  ],
15
  "drama": [
16
- {"title": "Nomadland", "image": "images/nomadland.jpg"},
17
- {"title": "The Father", "image": "images/the_father.jpg"},
18
- {"title": "Promising Young Woman", "image": "images/promising_young_woman.jpg"},
19
  ],
20
  "sci-fi": [
21
- {"title": "Dune", "image": "images/dune.jpg"},
22
- {"title": "Tenet", "image": "images/tenet.jpg"},
23
- {"title": "The Matrix Resurrections", "image": "images/matrix_resurrections.jpg"},
24
  ],
25
  "horror": [
26
- {"title": "A Quiet Place Part II", "image": "images/a_quiet_place_part_ii.jpg"},
27
- {"title": "Candyman", "image": "images/candyman.jpg"},
28
- {"title": "Malignant", "image": "images/malignant.jpg"},
29
  ],
30
  "romance": [
31
- {"title": "The Hating Game", "image": "images/the_hating_game.jpg"},
32
- {"title": "To All the Boys: Always and Forever", "image": "images/to_all_the_boys.jpg"},
33
- {"title": "After We Fell", "image": "images/after_we_fell.jpg"},
34
  ],
35
  "animation": [
36
- {"title": "Inside Out 2", "image": "images/inside_out_2.jpg"},
37
- {"title": "Soul", "image": "images/soul.jpg"},
38
- {"title": "The Boy and the Heron", "image": "images/boy_and_the_heron.jpg"},
 
 
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