Devap001 commited on
Commit
ee46950
1 Parent(s): 695dc5a

Delete top-5_movie_recommendation.ipynb

Browse files
Files changed (1) hide show
  1. top-5_movie_recommendation.ipynb +0 -1458
top-5_movie_recommendation.ipynb DELETED
@@ -1,1458 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "id": "a30a6b17",
7
- "metadata": {},
8
- "outputs": [
9
- {
10
- "name": "stdout",
11
- "output_type": "stream",
12
- "text": [
13
- "Defaulting to user installation because normal site-packages is not writeable\n",
14
- "Requirement already satisfied: datasets in /home/z/.local/lib/python3.10/site-packages (2.11.0)\n",
15
- "Requirement already satisfied: requests>=2.19.0 in /usr/lib/python3/dist-packages (from datasets) (2.25.1)\n",
16
- "Requirement already satisfied: dill<0.3.7,>=0.3.0 in /home/z/.local/lib/python3.10/site-packages (from datasets) (0.3.6)\n",
17
- "Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from datasets) (21.3)\n",
18
- "Requirement already satisfied: tqdm>=4.62.1 in /home/z/.local/lib/python3.10/site-packages (from datasets) (4.65.0)\n",
19
- "Requirement already satisfied: pandas in /home/z/.local/lib/python3.10/site-packages (from datasets) (2.0.0)\n",
20
- "Requirement already satisfied: responses<0.19 in /home/z/.local/lib/python3.10/site-packages (from datasets) (0.18.0)\n",
21
- "Requirement already satisfied: aiohttp in /home/z/.local/lib/python3.10/site-packages (from datasets) (3.8.4)\n",
22
- "Requirement already satisfied: huggingface-hub<1.0.0,>=0.11.0 in /home/z/.local/lib/python3.10/site-packages (from datasets) (0.13.4)\n",
23
- "Requirement already satisfied: multiprocess in /home/z/.local/lib/python3.10/site-packages (from datasets) (0.70.14)\n",
24
- "Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from datasets) (5.4.1)\n",
25
- "Requirement already satisfied: pyarrow>=8.0.0 in /home/z/.local/lib/python3.10/site-packages (from datasets) (11.0.0)\n",
26
- "Requirement already satisfied: numpy>=1.17 in /home/z/.local/lib/python3.10/site-packages (from datasets) (1.23.5)\n",
27
- "Requirement already satisfied: fsspec[http]>=2021.11.1 in /home/z/.local/lib/python3.10/site-packages (from datasets) (2023.4.0)\n",
28
- "Requirement already satisfied: xxhash in /home/z/.local/lib/python3.10/site-packages (from datasets) (3.2.0)\n",
29
- "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->datasets) (4.0.2)\n",
30
- "Requirement already satisfied: aiosignal>=1.1.2 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.1)\n",
31
- "Requirement already satisfied: multidict<7.0,>=4.5 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->datasets) (6.0.4)\n",
32
- "Requirement already satisfied: frozenlist>=1.1.1 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->datasets) (1.3.3)\n",
33
- "Requirement already satisfied: attrs>=17.3.0 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->datasets) (22.2.0)\n",
34
- "Requirement already satisfied: yarl<2.0,>=1.0 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->datasets) (1.9.1)\n",
35
- "Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->datasets) (3.1.0)\n",
36
- "Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/z/.local/lib/python3.10/site-packages (from huggingface-hub<1.0.0,>=0.11.0->datasets) (4.5.0)\n",
37
- "Requirement already satisfied: filelock in /usr/lib/python3/dist-packages (from huggingface-hub<1.0.0,>=0.11.0->datasets) (3.6.0)\n",
38
- "Requirement already satisfied: urllib3>=1.25.10 in /usr/lib/python3/dist-packages (from responses<0.19->datasets) (1.26.5)\n",
39
- "Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3/dist-packages (from pandas->datasets) (2022.1)\n",
40
- "Requirement already satisfied: python-dateutil>=2.8.2 in /home/z/.local/lib/python3.10/site-packages (from pandas->datasets) (2.8.2)\n",
41
- "Requirement already satisfied: tzdata>=2022.1 in /home/z/.local/lib/python3.10/site-packages (from pandas->datasets) (2023.3)\n",
42
- "Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.2->pandas->datasets) (1.16.0)\n",
43
- "Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0,>=1.0->aiohttp->datasets) (3.3)\n",
44
- "Note: you may need to restart the kernel to use updated packages.\n",
45
- "Defaulting to user installation because normal site-packages is not writeable\n",
46
- "Requirement already satisfied: faiss-cpu in /home/z/.local/lib/python3.10/site-packages (1.7.4)\n",
47
- "Note: you may need to restart the kernel to use updated packages.\n"
48
- ]
49
- }
50
- ],
51
- "source": [
52
- "%pip install datasets\n",
53
- "%pip install faiss-cpu"
54
- ]
55
- },
56
- {
57
- "cell_type": "code",
58
- "execution_count": 2,
59
- "id": "c1f6512f",
60
- "metadata": {},
61
- "outputs": [
62
- {
63
- "name": "stderr",
64
- "output_type": "stream",
65
- "text": [
66
- "Found cached dataset csv (/home/z/.cache/huggingface/datasets/SandipPalit___csv/SandipPalit--Movie_Dataset-83bb53eb261b0039/0.0.0/6954658bab30a358235fa864b05cf819af0e179325c740e4bc853bcc7ec513e1)\n"
67
- ]
68
- },
69
- {
70
- "data": {
71
- "application/vnd.jupyter.widget-view+json": {
72
- "model_id": "23796a0b18c842018d86d13879632e93",
73
- "version_major": 2,
74
- "version_minor": 0
75
- },
76
- "text/plain": [
77
- " 0%| | 0/1 [00:00<?, ?it/s]"
78
- ]
79
- },
80
- "metadata": {},
81
- "output_type": "display_data"
82
- },
83
- {
84
- "name": "stdout",
85
- "output_type": "stream",
86
- "text": [
87
- "['Release Date', 'Title', 'Overview', 'Genre', 'Vote Average', 'Vote Count']\n"
88
- ]
89
- }
90
- ],
91
- "source": [
92
- "import datasets\n",
93
- "\n",
94
- "# Load the dataset\n",
95
- "dataset = datasets.load_dataset(\"SandipPalit/Movie_Dataset\")\n",
96
- "\n",
97
- "# Print the column names\n",
98
- "print(dataset['train'].column_names)\n"
99
- ]
100
- },
101
- {
102
- "cell_type": "code",
103
- "execution_count": 3,
104
- "id": "b713e8ca",
105
- "metadata": {},
106
- "outputs": [],
107
- "source": [
108
- "title = dataset['train']['Title']\n",
109
- "overview = dataset['train']['Overview']"
110
- ]
111
- },
112
- {
113
- "cell_type": "code",
114
- "execution_count": 4,
115
- "id": "3c1cf04b",
116
- "metadata": {},
117
- "outputs": [
118
- {
119
- "data": {
120
- "text/plain": [
121
- "['Agnes May Turner on a Swing',\n",
122
- " 'Scarlet Macaw on Perch',\n",
123
- " 'Kiri-Kis',\n",
124
- " 'The Birth of a Nation',\n",
125
- " 'One A.M.',\n",
126
- " 'The Adventurer',\n",
127
- " \"A Dog's Life\",\n",
128
- " \"The Parson's Widow\",\n",
129
- " 'Outside the Law',\n",
130
- " 'Dream Street',\n",
131
- " 'Destiny',\n",
132
- " 'The Sheik',\n",
133
- " 'Beyond the Rocks',\n",
134
- " 'Nanook of the North',\n",
135
- " 'The Pilgrim',\n",
136
- " 'The Marriage Circle',\n",
137
- " 'The City Without Jews',\n",
138
- " \"Grass: A Nation's Battle for Life\",\n",
139
- " 'The Gold Rush',\n",
140
- " 'Go West',\n",
141
- " 'Serpent',\n",
142
- " 'Ben-Hur: A Tale of the Christ',\n",
143
- " 'Emak-Bakia',\n",
144
- " 'The Adventures of Prince Achmed',\n",
145
- " 'Napoleon',\n",
146
- " 'Wings',\n",
147
- " 'Ghost Train',\n",
148
- " 'The Battles of the Coronel and Falkland Islands',\n",
149
- " 'Twenty-Four Dollar Island',\n",
150
- " 'Gogi Ratiani',\n",
151
- " 'The Last Command',\n",
152
- " 'The Crowd',\n",
153
- " 'Finis Terrae',\n",
154
- " 'Man with a Movie Camera',\n",
155
- " 'The Broadway Melody',\n",
156
- " 'Arsenal',\n",
157
- " 'The Woman and the Puppet',\n",
158
- " 'Un Chien Andalou',\n",
159
- " 'Diary of a Lost Girl',\n",
160
- " 'The Mysterious Island',\n",
161
- " 'Woman in the Moon',\n",
162
- " 'Murder!',\n",
163
- " 'Thirteen Days',\n",
164
- " 'Dracula',\n",
165
- " 'A Day in the Life of Chameko',\n",
166
- " 'Jirokichi the Rat',\n",
167
- " 'Murders in the Rue Morgue',\n",
168
- " 'Wooden Crosses',\n",
169
- " 'Merrily We Go to Hell',\n",
170
- " 'Kongo',\n",
171
- " 'The Old Dark House',\n",
172
- " 'Island of Lost Souls',\n",
173
- " '90° South',\n",
174
- " 'Ecstasy',\n",
175
- " 'The Vampire Bat',\n",
176
- " 'The Dancing Girl of Izu',\n",
177
- " 'Dinner at Eight',\n",
178
- " \"L'Atalante\",\n",
179
- " 'Two Monks',\n",
180
- " 'Triumph of the Will',\n",
181
- " 'The Invisible Ray',\n",
182
- " 'The Great Ziegfeld',\n",
183
- " 'Mr. Deeds Goes to Town',\n",
184
- " 'Secret Agent',\n",
185
- " 'Toby Tortoise Returns',\n",
186
- " 'The Gardens of Murcia',\n",
187
- " 'The Lower Depths',\n",
188
- " \"Let's Make a Dream\",\n",
189
- " 'Sabotage',\n",
190
- " 'Guest House Paradise',\n",
191
- " 'Young and Innocent',\n",
192
- " 'The White Disease',\n",
193
- " 'Son of Frankenstein',\n",
194
- " 'Let Us Live',\n",
195
- " 'Wuthering Heights',\n",
196
- " 'They All Come Out',\n",
197
- " 'The Wizard of Oz',\n",
198
- " 'The Adventures of Sherlock Holmes',\n",
199
- " 'The Invisible Man Returns',\n",
200
- " 'His Girl Friday',\n",
201
- " \"Now You're Talking\",\n",
202
- " 'Rebecca',\n",
203
- " 'Vassilisa the Beautiful',\n",
204
- " 'The Thief of Bagdad',\n",
205
- " 'Request Concert',\n",
206
- " 'Man-Made Monster',\n",
207
- " 'Citizen Kane',\n",
208
- " 'Invisible Ghost',\n",
209
- " 'The Little Foxes',\n",
210
- " 'Texas',\n",
211
- " 'How Green Was My Valley',\n",
212
- " '49th Parallel',\n",
213
- " \"Sullivan's Travels\",\n",
214
- " 'Tower of Terror',\n",
215
- " 'The Ghost of Frankenstein',\n",
216
- " 'Jungle Book',\n",
217
- " 'Saboteur',\n",
218
- " 'The Night Has Eyes',\n",
219
- " 'Holiday Inn',\n",
220
- " 'Saludos Amigos',\n",
221
- " 'The Battle of Midway',\n",
222
- " 'Sherlock Holmes and the Voice of Terror',\n",
223
- " 'Road to Morocco',\n",
224
- " 'Ride Tonight!',\n",
225
- " 'Shadow of a Doubt',\n",
226
- " 'Sherlock Holmes and the Secret Weapon',\n",
227
- " 'Frankenstein Meets the Wolf Man',\n",
228
- " 'The Ox-Bow Incident',\n",
229
- " 'The Spider and the Tulip',\n",
230
- " 'Hangmen Also Die!',\n",
231
- " 'Above Suspicion',\n",
232
- " 'For Whom the Bell Tolls',\n",
233
- " 'Sherlock Holmes Faces Death',\n",
234
- " 'Swing Fever',\n",
235
- " 'Son of Dracula',\n",
236
- " 'Titanic',\n",
237
- " 'The Song of Bernadette',\n",
238
- " 'The Spider Woman',\n",
239
- " 'Café de París',\n",
240
- " 'Phantom Lady',\n",
241
- " 'Lifeboat',\n",
242
- " 'Candlelight in Algeria',\n",
243
- " 'The Scarlet Claw',\n",
244
- " 'This Happy Breed',\n",
245
- " \"The Invisible Man's Revenge\",\n",
246
- " 'The Three Caballeros',\n",
247
- " 'The Pearl of Death',\n",
248
- " \"Momotaro's Divine Sea Warriors\",\n",
249
- " 'The House of Fear',\n",
250
- " 'The Scarlet Clue',\n",
251
- " 'The Clock',\n",
252
- " 'The Woman in Green',\n",
253
- " 'Paris Frills',\n",
254
- " 'Mildred Pierce',\n",
255
- " 'Pursuit to Algiers',\n",
256
- " 'Captain Kidd',\n",
257
- " 'House of Dracula',\n",
258
- " 'Terror by Night',\n",
259
- " 'The Diary of a Chambermaid',\n",
260
- " 'The Blue Dahlia',\n",
261
- " 'Dressed to Kill',\n",
262
- " 'The Murderers Are Among Us',\n",
263
- " 'My Darling Clementine',\n",
264
- " 'Double Dribble',\n",
265
- " 'Great Expectations',\n",
266
- " 'Sunshine Follows Rain',\n",
267
- " 'Odd Man Out',\n",
268
- " 'Boomerang!',\n",
269
- " 'The Ghost and Mrs. Muir',\n",
270
- " 'One Wonderful Sunday',\n",
271
- " 'Brute Force',\n",
272
- " 'Woman Without a Face',\n",
273
- " 'Fun and Fancy Free',\n",
274
- " 'Jenny Lamour',\n",
275
- " 'Nightmare Alley',\n",
276
- " \"Gentleman's Agreement\",\n",
277
- " 'Mine Own Executioner',\n",
278
- " 'The Chinese Ring',\n",
279
- " 'T-Men',\n",
280
- " \"The Bishop's Wife\",\n",
281
- " 'Daisy Kenyon',\n",
282
- " 'Rope',\n",
283
- " 'The Big Clock',\n",
284
- " 'Drunken Angel',\n",
285
- " 'Letter from an Unknown Woman',\n",
286
- " 'State of the Union',\n",
287
- " 'Raw Deal',\n",
288
- " 'Melody Time',\n",
289
- " 'Fort Apache',\n",
290
- " 'Oliver Twist',\n",
291
- " \"Pluto's Purchase\",\n",
292
- " 'The Man from Colorado',\n",
293
- " 'A Foreign Affair',\n",
294
- " 'Station West',\n",
295
- " 'Cry of the City',\n",
296
- " 'The Fallen Idol',\n",
297
- " 'Sleeping Car To Trieste',\n",
298
- " 'Night Has a Thousand Eyes',\n",
299
- " 'Bicycle Thieves',\n",
300
- " 'So Dear to My Heart',\n",
301
- " 'Yellow Sky',\n",
302
- " 'The Berliner',\n",
303
- " 'He Walked by Night',\n",
304
- " 'Caught',\n",
305
- " 'Manon',\n",
306
- " 'The Queen of Spades',\n",
307
- " 'Lust for Gold',\n",
308
- " 'Whisky Galore!',\n",
309
- " 'House of Strangers',\n",
310
- " 'Late Spring',\n",
311
- " \"Thieves' Highway\",\n",
312
- " 'The Adventures of Ichabod and Mr. Toad',\n",
313
- " 'The Heiress',\n",
314
- " 'Passport to Pimlico',\n",
315
- " \"Twelve O'Clock High\",\n",
316
- " 'Samson and Delilah',\n",
317
- " 'Cinderella',\n",
318
- " 'Stage Fright',\n",
319
- " 'Les Enfants terribles',\n",
320
- " 'Annie Get Your Gun',\n",
321
- " 'Rocketship X-M',\n",
322
- " 'The Gunfighter',\n",
323
- " 'Where the Sidewalk Ends',\n",
324
- " \"Winchester '73\",\n",
325
- " 'La Ronde',\n",
326
- " \"This Can't Happen Here\",\n",
327
- " 'Woman on the Run',\n",
328
- " 'Lost Souvenirs',\n",
329
- " 'Harvey',\n",
330
- " 'The Young and the Damned',\n",
331
- " 'The Flowers of St. Francis',\n",
332
- " 'Prince Bayaya',\n",
333
- " 'Pool of London',\n",
334
- " 'The Thing From Another World',\n",
335
- " 'Olivia',\n",
336
- " 'Miracles Only Happen Once',\n",
337
- " 'Juliette, or Key of Dreams',\n",
338
- " 'Strangers on a Train',\n",
339
- " 'The Man in the White Suit',\n",
340
- " 'The Mob',\n",
341
- " 'A Streetcar Named Desire',\n",
342
- " 'The Day the Earth Stood Still',\n",
343
- " 'Early Summer',\n",
344
- " 'Quo Vadis',\n",
345
- " 'High Treason',\n",
346
- " \"Nobody's Children\",\n",
347
- " 'Umberto D.',\n",
348
- " 'Bend of the River',\n",
349
- " 'Viva Zapata!',\n",
350
- " 'Forbidden Games',\n",
351
- " 'The Sniper',\n",
352
- " 'Clash by Night',\n",
353
- " 'The Importance of Being Earnest',\n",
354
- " 'Mother',\n",
355
- " 'Has Anybody Seen My Gal?',\n",
356
- " 'The White Reindeer',\n",
357
- " 'Mandy',\n",
358
- " 'The Sound Barrier',\n",
359
- " \"Brelan d'as\",\n",
360
- " 'Way of a Gaucho',\n",
361
- " 'Hans Christian Andersen',\n",
362
- " \"Manina, the Lighthouse-Keeper's Daughter\",\n",
363
- " 'Daybreak Express',\n",
364
- " 'Niagara',\n",
365
- " 'Summer with Monika',\n",
366
- " 'The Titfield Thunderbolt',\n",
367
- " 'The Wages of Fear',\n",
368
- " 'Shane',\n",
369
- " 'The 5,000 Fingers of Dr. T.',\n",
370
- " 'The Lone Hand',\n",
371
- " 'Roman Holiday',\n",
372
- " 'From Here to Eternity',\n",
373
- " 'Sawdust and Tinsel',\n",
374
- " 'The Robe',\n",
375
- " 'Little Fugitive',\n",
376
- " 'Hiroshima',\n",
377
- " 'The Big Heat',\n",
378
- " 'The Intruder',\n",
379
- " 'Gate of Hell',\n",
380
- " 'Hidden in the Fog',\n",
381
- " 'Hondo',\n",
382
- " 'White Mane',\n",
383
- " 'The Story of Little Mook',\n",
384
- " 'The Glenn Miller Story',\n",
385
- " 'The Far Country',\n",
386
- " 'Creature from the Black Lagoon',\n",
387
- " 'Touchez Pas au Grisbi',\n",
388
- " 'Seven Samurai',\n",
389
- " 'Demetrius and the Gladiators',\n",
390
- " 'Svengali',\n",
391
- " 'La Strada',\n",
392
- " 'Karin Månsdotter',\n",
393
- " 'Godzilla',\n",
394
- " 'The Crucified Lovers',\n",
395
- " 'Bloody Spear at Mount Fuji',\n",
396
- " 'Violent Saturday',\n",
397
- " 'Islands of Fire',\n",
398
- " 'East of Eden',\n",
399
- " 'Conquest of Space',\n",
400
- " 'Bride of the Monster',\n",
401
- " 'La Pointe-Courte',\n",
402
- " 'The Seven Year Itch',\n",
403
- " 'Easter in Sicily',\n",
404
- " 'Surfarara',\n",
405
- " 'The Man from Laramie',\n",
406
- " 'Abandoned',\n",
407
- " 'Footsteps in the Fog',\n",
408
- " 'Duel on the Mississippi',\n",
409
- " 'The Tall Men',\n",
410
- " 'A Hole of My Own Making',\n",
411
- " 'The Swindlers',\n",
412
- " 'The Age of Swordfish',\n",
413
- " 'Sea Countrymen',\n",
414
- " 'Timeslip',\n",
415
- " 'I Live in Fear',\n",
416
- " 'The Court Jester',\n",
417
- " 'The Burmese Harp',\n",
418
- " '1984',\n",
419
- " 'Victory is Ours',\n",
420
- " 'Forbidden Planet',\n",
421
- " 'A Girl in Black',\n",
422
- " 'The Werewolf',\n",
423
- " 'High Society',\n",
424
- " 'War and Peace',\n",
425
- " \"Nero's Mistress\",\n",
426
- " 'Lust for Life',\n",
427
- " 'Written on the Wind',\n",
428
- " 'The Forty-First',\n",
429
- " 'Spring on Zarechnaya Street',\n",
430
- " \"The Girl Can't Help It\",\n",
431
- " 'Sissi: The Young Empress',\n",
432
- " 'Westward Ho, The Wagons!',\n",
433
- " 'Final Curtain',\n",
434
- " 'Throne of Blood',\n",
435
- " 'Battle Hymn',\n",
436
- " 'The Incredible Shrinking Man',\n",
437
- " 'Eight Hours of Terror',\n",
438
- " 'Marisa la civetta',\n",
439
- " 'The Severed Heads',\n",
440
- " 'The Iron Sheriff',\n",
441
- " 'Demoniac',\n",
442
- " 'Tokyo Twilight',\n",
443
- " 'Where To?',\n",
444
- " 'China Gate',\n",
445
- " 'Gunfight at the O.K. Corral',\n",
446
- " 'An Affair to Remember',\n",
447
- " 'Super Giant',\n",
448
- " 'Run of the Arrow',\n",
449
- " 'Quantez',\n",
450
- " 'The Lower Depths',\n",
451
- " 'The Land Unknown',\n",
452
- " 'The One That Got Away',\n",
453
- " 'The Curse of the Aztec Mummy',\n",
454
- " 'Charmants Garçons',\n",
455
- " 'Peyton Place',\n",
456
- " 'A Farewell to Arms',\n",
457
- " 'Sissi: The Fateful Years of an Empress',\n",
458
- " 'The Screaming Skull',\n",
459
- " 'Cowboy',\n",
460
- " 'The Lady in Black',\n",
461
- " 'Underworld Beauty',\n",
462
- " 'Run Silent, Run Deep',\n",
463
- " 'Souls in the Moonlight II',\n",
464
- " 'Fort Massacre',\n",
465
- " 'All About Marriage',\n",
466
- " 'Le Beau Serge',\n",
467
- " 'The H-Man',\n",
468
- " 'The Boy Who Came Back',\n",
469
- " 'The Snorkel',\n",
470
- " 'Village by the River',\n",
471
- " 'Invention for Destruction',\n",
472
- " 'Cat on a Hot Tin Roof',\n",
473
- " \"Ivan the Terrible, Part II: The Boyars' Plot\",\n",
474
- " 'The Tale of the White Serpent',\n",
475
- " 'Young Breasts',\n",
476
- " 'I Married a Monster from Outer Space',\n",
477
- " 'Voice Without a Shadow',\n",
478
- " 'Floods of Fear',\n",
479
- " 'Mannequin in Red',\n",
480
- " 'The Hidden Fortress',\n",
481
- " 'No Trees in the Street',\n",
482
- " 'Captured',\n",
483
- " 'Love Letter',\n",
484
- " 'The Big Boss',\n",
485
- " 'House on Haunted Hill',\n",
486
- " 'The Diary of Anne Frank',\n",
487
- " 'Stars',\n",
488
- " 'Passport to Darkness',\n",
489
- " 'The Horse Soldiers',\n",
490
- " 'Anatomy of a Murder',\n",
491
- " 'Day of the Outlaw',\n",
492
- " 'The Mouse That Roared',\n",
493
- " 'Plan 9 from Outer Space',\n",
494
- " 'The Tingler',\n",
495
- " 'Last Train from Gun Hill',\n",
496
- " 'Night Train',\n",
497
- " 'Age of Nudity',\n",
498
- " \"Someday I'll Know\",\n",
499
- " 'Dangerous Liaisons',\n",
500
- " 'Look Back in Anger',\n",
501
- " \"A Midsummer Night's Dream\",\n",
502
- " 'Attack of the Giant Leeches',\n",
503
- " 'Desperado Outpost',\n",
504
- " 'Odds Against Tomorrow',\n",
505
- " 'The Bridge',\n",
506
- " 'Floating Weeds',\n",
507
- " 'A Town of Love and Hope',\n",
508
- " 'The Angry Red Planet',\n",
509
- " 'Santa Claus',\n",
510
- " 'Ballad of a Soldier',\n",
511
- " 'Operation Petticoat',\n",
512
- " 'The Cow and I',\n",
513
- " 'Ferdinand I King of Naples',\n",
514
- " 'Magic Boy',\n",
515
- " 'The Last Gunfight',\n",
516
- " 'Take Aim at the Police Van',\n",
517
- " 'The Virgin Spring',\n",
518
- " 'Sink the Bismarck!',\n",
519
- " \"The Young Lady's Fool\",\n",
520
- " 'Le Trou',\n",
521
- " 'Afraid To Die',\n",
522
- " 'The Big Risk',\n",
523
- " \"Jazz on a Summer's Day\",\n",
524
- " 'The Sleeping Beast Within',\n",
525
- " 'The Baron of the Locks',\n",
526
- " 'The Magnificent Seven',\n",
527
- " 'Storm Over the Pacific',\n",
528
- " 'House of Usher',\n",
529
- " 'Good-for-Nothing',\n",
530
- " '13 Ghosts',\n",
531
- " 'Jigoku',\n",
532
- " 'The Little Shop of Horrors',\n",
533
- " \"The Sun's Burial\",\n",
534
- " 'Beat Girl',\n",
535
- " 'Youth in Fury',\n",
536
- " 'Hero of the Red Light District',\n",
537
- " 'The Bad Sleep Well',\n",
538
- " 'Kapo',\n",
539
- " 'The Approach of Autumn',\n",
540
- " 'Everything Goes Wrong',\n",
541
- " 'Blood Is Dry',\n",
542
- " 'Night and Fog in Japan',\n",
543
- " 'The Alamo',\n",
544
- " 'Westward Desperado',\n",
545
- " 'Fighting Delinquents',\n",
546
- " 'Shoot the Piano Player',\n",
547
- " 'He Who Hesitates Is Lost',\n",
548
- " 'Come September',\n",
549
- " 'Blueprint of Murder',\n",
550
- " 'Pigs and Battleships',\n",
551
- " 'Killers on Parade',\n",
552
- " 'The Great Impostor',\n",
553
- " 'The Menace',\n",
554
- " 'The Absent-Minded Professor',\n",
555
- " 'Adventures on the New Frontier',\n",
556
- " 'One-Eyed Jacks',\n",
557
- " 'Big Shots Die at Dawn',\n",
558
- " 'Black Gravel',\n",
559
- " 'Yojimbo',\n",
560
- " 'The Curse of the Werewolf',\n",
561
- " 'Last Year at Marienbad',\n",
562
- " 'The Man with a Shotgun',\n",
563
- " 'The Last Sunset',\n",
564
- " 'Voyage to the Bottom of the Sea',\n",
565
- " 'Mothra',\n",
566
- " 'Victim',\n",
567
- " 'The Taste of Violence',\n",
568
- " 'The Pit and the Pendulum',\n",
569
- " 'The Fabulous Baron Munchausen',\n",
570
- " 'The Hustler',\n",
571
- " 'Accattone',\n",
572
- " 'The Boy in the Tree',\n",
573
- " 'Murder She Said',\n",
574
- " 'The Counterfeiters of Paris',\n",
575
- " 'Blood-Red Water in the Channel',\n",
576
- " 'El Cid',\n",
577
- " 'The Mask',\n",
578
- " 'The Day the Earth Caught Fire',\n",
579
- " 'Erik the Conqueror',\n",
580
- " 'West Side Story',\n",
581
- " 'Judgment at Nuremberg',\n",
582
- " 'A Difficult Life',\n",
583
- " 'Lover Come Back',\n",
584
- " \"On the Tiger's Back\",\n",
585
- " 'Ursus in the Valley of the Lions',\n",
586
- " 'Something Wild',\n",
587
- " 'Blazes',\n",
588
- " 'Sanjuro',\n",
589
- " 'Sodom and Gomorrah',\n",
590
- " '13 West Street',\n",
591
- " 'Totò diabolicus',\n",
592
- " 'Cléo from 5 to 7',\n",
593
- " 'The Man Who Shot Liberty Valance',\n",
594
- " 'A Monkey in Winter',\n",
595
- " 'The Intruder',\n",
596
- " 'The Awful Dr. Orloff',\n",
597
- " 'Bon Voyage!',\n",
598
- " 'Advise & Consent',\n",
599
- " 'Akitsu Springs',\n",
600
- " 'Teenage Yakuza',\n",
601
- " 'The Day of the Triffids',\n",
602
- " 'The Spiral Road',\n",
603
- " 'King Kong vs. Godzilla',\n",
604
- " 'Jigsaw',\n",
605
- " 'Vivre Sa Vie',\n",
606
- " 'The Loneliness of the Long Distance Runner',\n",
607
- " 'The Longest Day',\n",
608
- " 'A Flame at the Pier',\n",
609
- " 'The Gentleman from Epsom',\n",
610
- " 'Tower of London',\n",
611
- " 'Ninja, a Band of Assassins',\n",
612
- " 'Lawrence of Arabia',\n",
613
- " 'Freud: The Secret Passion',\n",
614
- " 'Tiger of the Seven Seas',\n",
615
- " 'The Conjugal Bed',\n",
616
- " 'El camino',\n",
617
- " 'Detective Bureau 2-3: Go to Hell, Bastards!',\n",
618
- " 'The Shortest Day',\n",
619
- " 'Like Two Drops of Water',\n",
620
- " 'High and Low',\n",
621
- " 'The Baby Carriage',\n",
622
- " 'Any Number Can Win',\n",
623
- " 'Warring Clans',\n",
624
- " 'The Leopard',\n",
625
- " 'Youth of the Beast',\n",
626
- " 'We Joined the Navy',\n",
627
- " 'Irma la Douce',\n",
628
- " 'Dinner for One',\n",
629
- " 'World Gone Mad',\n",
630
- " 'The Great Escape',\n",
631
- " 'Shinobi no Mono 2: Vengeance',\n",
632
- " 'The Fiancés',\n",
633
- " '80,000 Suspects',\n",
634
- " 'The Haunted Palace',\n",
635
- " '18 Roughs',\n",
636
- " 'The Kiss of the Vampire',\n",
637
- " 'When the Cat Comes',\n",
638
- " 'The Silence',\n",
639
- " 'Shock Corridor',\n",
640
- " 'Hands over the City',\n",
641
- " 'The Elegant Life of Mr. Everyman',\n",
642
- " 'The Insect Woman',\n",
643
- " 'Kanto Wanderer',\n",
644
- " 'Soldier in the Rain',\n",
645
- " 'The Green Years',\n",
646
- " 'Sasuke and His Comedians',\n",
647
- " 'The Sword in the Stone',\n",
648
- " 'One Potato, Two Potato',\n",
649
- " 'Warrior of the Wind',\n",
650
- " 'Yearning',\n",
651
- " 'A Fistful of Dollars',\n",
652
- " \"Man's Favorite Sport?\",\n",
653
- " 'Ken',\n",
654
- " 'Ring of Spies',\n",
655
- " 'Man in the 5th Dimension',\n",
656
- " '633 Squadron',\n",
657
- " 'Oh, Bomb!',\n",
658
- " \"The Hunter's Diary\",\n",
659
- " 'A Theme with Variations',\n",
660
- " 'The Unknown',\n",
661
- " 'Before the Revolution',\n",
662
- " 'Gate of Flesh',\n",
663
- " 'Joy House',\n",
664
- " 'Escape from Japan',\n",
665
- " 'Assassination',\n",
666
- " \"A Hard Day's Night\",\n",
667
- " 'Marnie',\n",
668
- " 'The Castle of the Living Dead',\n",
669
- " 'Valparaiso',\n",
670
- " 'Le Gendarme de Saint-Tropez',\n",
671
- " 'Goldfinger',\n",
672
- " 'The Call of Blood',\n",
673
- " 'Send Me No Flowers',\n",
674
- " 'Dear John',\n",
675
- " 'Un gosse de la butte',\n",
676
- " 'Mozambique',\n",
677
- " 'Hush... Hush, Sweet Charlotte',\n",
678
- " 'Samurai Assassin',\n",
679
- " 'A Fugitive from the Past',\n",
680
- " 'Happiness',\n",
681
- " 'Mutiny in Outer Space',\n",
682
- " 'Fanatic',\n",
683
- " \"I'm Not Worthy of You\",\n",
684
- " 'Those Magnificent Men in Their Flying Machines or How I Flew from London to Paris in 25 hours 11 minutes',\n",
685
- " 'The Collector',\n",
686
- " \"Von Ryan's Express\",\n",
687
- " 'And the Woman Shall Fear Her Husband',\n",
688
- " \"Operation Y and Other Shurik's Adventures\",\n",
689
- " 'Planet of the Vampires',\n",
690
- " 'Fort Graveyard',\n",
691
- " 'Invasion',\n",
692
- " 'Color Me Blood Red',\n",
693
- " 'Juliet of the Spirits',\n",
694
- " 'How to Keep the Red Lamp Burning',\n",
695
- " 'The Gendarme in New York',\n",
696
- " 'The First Teacher',\n",
697
- " 'Tattooed Life',\n",
698
- " 'The Sleeping Car Murder',\n",
699
- " 'A Story Written with Water',\n",
700
- " 'Tjorven and Skrallan',\n",
701
- " 'The 10th Victim',\n",
702
- " 'Rita the American Girl',\n",
703
- " 'Thunderball',\n",
704
- " 'The Flight of the Phoenix',\n",
705
- " 'Battle of the Bulge',\n",
706
- " 'For a Few Dollars More',\n",
707
- " 'Docking the Boat',\n",
708
- " 'Weekend, Italian Style',\n",
709
- " 'With Love from Truman',\n",
710
- " 'Carmen from Kawachi',\n",
711
- " 'The Silencers',\n",
712
- " 'The Sword of Doom',\n",
713
- " 'How Do I Love You?',\n",
714
- " 'Daimajin',\n",
715
- " 'Stagecoach',\n",
716
- " 'Destination Inner Space',\n",
717
- " 'Beware of the Car!',\n",
718
- " 'Cul-de-sac',\n",
719
- " 'Savage Pampas',\n",
720
- " 'How to Steal a Million',\n",
721
- " 'Return of Daimajin',\n",
722
- " 'Fantastic Voyage',\n",
723
- " 'Chappaqua',\n",
724
- " 'Fahrenheit 451',\n",
725
- " 'Rita the Mosquito',\n",
726
- " 'Seconds',\n",
727
- " \"It's the Great Pumpkin, Charlie Brown\",\n",
728
- " 'Fighting Elegy',\n",
729
- " 'Carriage to Vienna',\n",
730
- " 'Navajo Joe',\n",
731
- " 'The Big Gundown',\n",
732
- " 'Triple Cross',\n",
733
- " 'Tjorven and Mysak',\n",
734
- " 'A Man for All Seasons',\n",
735
- " 'El Dorado',\n",
736
- " 'How the Grinch Stole Christmas!',\n",
737
- " 'July Rain',\n",
738
- " 'Here Is Your Life',\n",
739
- " 'Soy leyenda',\n",
740
- " 'La caza de brujas',\n",
741
- " 'Anna',\n",
742
- " 'Misunderstood',\n",
743
- " 'The Terrornauts',\n",
744
- " 'The Age of Assassins',\n",
745
- " 'Tobruk',\n",
746
- " 'Accident',\n",
747
- " 'Sing a Song of Sex',\n",
748
- " 'The Young Girls of Rochefort',\n",
749
- " 'Shock Troops',\n",
750
- " 'The Affair',\n",
751
- " 'Bob Dylan - Dont Look Back',\n",
752
- " 'The War Wagon',\n",
753
- " 'The Dacians',\n",
754
- " 'To Sir, with Love',\n",
755
- " 'Branded to Kill',\n",
756
- " 'The Dirty Dozen',\n",
757
- " 'Cool Hand Luke',\n",
758
- " 'King Kong Escapes',\n",
759
- " \"Japan's Longest Day\",\n",
760
- " 'Oedipus Rex',\n",
761
- " 'The Orgies of Dr. Orloff',\n",
762
- " 'The Jungle Book',\n",
763
- " 'Dragon Inn',\n",
764
- " 'Le Samouraï',\n",
765
- " 'The Incident',\n",
766
- " 'The Snow Queen',\n",
767
- " 'Impasse',\n",
768
- " 'Skrallan, Ruskprick and Gurnard',\n",
769
- " 'Poor Cow',\n",
770
- " \"Guess Who's Coming to Dinner\",\n",
771
- " 'In Cold Blood',\n",
772
- " 'Magical Mystery Tour',\n",
773
- " \"Song That's Playing In My Head (Zum Zum Zum)\",\n",
774
- " 'Mayerling',\n",
775
- " 'Voyage to the Planet of Prehistoric Women',\n",
776
- " 'Django, Prepare a Coffin',\n",
777
- " 'Tell Me Lies',\n",
778
- " 'Wall Engravings',\n",
779
- " 'Planet of the Apes',\n",
780
- " 'Hour of the Wolf',\n",
781
- " 'A Man Called Gannon',\n",
782
- " 'Who Saw Him Die?',\n",
783
- " 'Gamera vs. Viras',\n",
784
- " 'The Sweet Body of Deborah',\n",
785
- " 'Les Biches',\n",
786
- " 'The Little Bather',\n",
787
- " 'Three Resurrected Drunkards',\n",
788
- " \"I'll Sell My Skin Dearly\",\n",
789
- " 'The Immortal Story',\n",
790
- " 'Caprice Italian Style',\n",
791
- " 'Kill!',\n",
792
- " 'Hishakaku and Kiratsune: A Tale of Two Yakuza',\n",
793
- " 'Bury Them Deep',\n",
794
- " 'Horus: Prince of the Sun',\n",
795
- " 'Mission Mars',\n",
796
- " 'Wrath Of God',\n",
797
- " 'The Mercenary',\n",
798
- " 'House of Cards',\n",
799
- " 'Oliver!',\n",
800
- " 'Night of the Living Dead',\n",
801
- " 'The Olsen Gang',\n",
802
- " 'Bullitt',\n",
803
- " 'The Human Bullet',\n",
804
- " 'Black Jack',\n",
805
- " 'Lonesome Cowboys',\n",
806
- " 'Commandos',\n",
807
- " 'Faces',\n",
808
- " 'Mandabi',\n",
809
- " 'Hellfighters',\n",
810
- " 'Black Panthers',\n",
811
- " 'Where Eagles Dare',\n",
812
- " 'Chitty Chitty Bang Bang',\n",
813
- " 'Hell in the Pacific',\n",
814
- " 'Monterey Pop',\n",
815
- " 'Fantasmatic',\n",
816
- " 'The Secret of Santa Vittoria',\n",
817
- " 'Lisa with the Blue Eyes',\n",
818
- " 'Butch Cassidy and the Sundance Kid',\n",
819
- " 'Riot',\n",
820
- " 'The Land',\n",
821
- " 'Sweet Charity',\n",
822
- " 'Return of the One-Armed Swordsman',\n",
823
- " 'Eros + Massacre',\n",
824
- " 'The Cremator',\n",
825
- " 'Gamera vs. Guiron',\n",
826
- " 'The Boys of Paul Street',\n",
827
- " \"The Virgin's Bed\",\n",
828
- " 'Double Suicide',\n",
829
- " 'Midnight Cowboy',\n",
830
- " 'That Cold Day in the Park',\n",
831
- " 'The Oblong Box',\n",
832
- " 'Eye of the Cat',\n",
833
- " 'The Chairman',\n",
834
- " 'The Bridge at Remagen',\n",
835
- " 'All My Good Countrymen',\n",
836
- " 'Margarita y el lobo',\n",
837
- " 'Me, Natalie',\n",
838
- " 'Boy',\n",
839
- " 'More',\n",
840
- " 'Journey to the Far Side of the Sun',\n",
841
- " 'A Gentle Woman',\n",
842
- " 'Army of Shadows',\n",
843
- " 'Women in Love',\n",
844
- " 'Battle of Britain',\n",
845
- " 'Alive or Preferably Dead',\n",
846
- " 'The Olsen Gang in a Fix',\n",
847
- " 'Katzelmacher',\n",
848
- " 'Red Lion',\n",
849
- " 'Tell Them Willie Boy Is Here',\n",
850
- " 'The Passion of Anna',\n",
851
- " 'The Merchant of Venice',\n",
852
- " 'The Sicilian Clan',\n",
853
- " 'The House That Screamed',\n",
854
- " 'A Very Curious Girl',\n",
855
- " 'Starlight',\n",
856
- " \"On Her Majesty's Secret Service\",\n",
857
- " 'All Monsters Attack',\n",
858
- " 'Burn!',\n",
859
- " 'The Beauty',\n",
860
- " 'The Computer Wore Tennis Shoes',\n",
861
- " 'Sartana in the Valley of Death',\n",
862
- " 'Nausicaa',\n",
863
- " 'An Evening of Edgar Allan Poe',\n",
864
- " \"She Couldn't Say No\",\n",
865
- " 'Baal',\n",
866
- " 'Zatoichi Meets Yojimbo',\n",
867
- " 'Tora! Tora! Tora!',\n",
868
- " 'Scream and Scream Again',\n",
869
- " 'The Honeymoon Killers',\n",
870
- " 'The Bird with the Crystal Plumage',\n",
871
- " 'The Things of Life',\n",
872
- " 'Five Dolls for an August Moon',\n",
873
- " \"Ryan's Daughter\",\n",
874
- " 'Woodstock',\n",
875
- " 'A Swedish Love Story',\n",
876
- " 'The Confession',\n",
877
- " 'Loot',\n",
878
- " 'Airport',\n",
879
- " 'Julius Caesar',\n",
880
- " 'Count Yorga, Vampire',\n",
881
- " 'Quackser Fortune Has a Cousin in the Bronx',\n",
882
- " \"Blind Woman's Curse\",\n",
883
- " 'Cry of the Banshee',\n",
884
- " 'Barquero',\n",
885
- " 'Symphony of Love',\n",
886
- " 'Fragment of Fear',\n",
887
- " \"The Children's Building Site\",\n",
888
- " 'The Anonymous Venetian',\n",
889
- " 'Nightbirds',\n",
890
- " 'Deadlock',\n",
891
- " 'Road to Salina',\n",
892
- " 'The Birch Wood',\n",
893
- " \"Elvis - That's the Way It Is\",\n",
894
- " 'A Man Called Sledge',\n",
895
- " 'The Forbidden Photos of a Lady Above Suspicion',\n",
896
- " 'Husbands',\n",
897
- " 'Don’t Cry, Pretty Girls!',\n",
898
- " 'Love Story',\n",
899
- " 'Donkey Skin',\n",
900
- " 'They Call Me Trinity',\n",
901
- " 'Light the Fuse… Sartana Is Coming',\n",
902
- " 'Dead Aim',\n",
903
- " 'Get Carter',\n",
904
- " 'The New One-Armed Swordsman',\n",
905
- " 'THX 1138',\n",
906
- " 'The Andromeda Strain',\n",
907
- " 'The Beguiled',\n",
908
- " \"Don't Deliver Us from Evil\",\n",
909
- " 'The Shiver of the Vampires',\n",
910
- " \"Papa, the Lil' Boats\",\n",
911
- " 'In the Eye of the Hurricane',\n",
912
- " 'Escape from the Planet of the Apes',\n",
913
- " 'Daughters of Darkness',\n",
914
- " \"Blood from the Mummy's Tomb\",\n",
915
- " 'The Anderson Tapes',\n",
916
- " 'Der arme Müllerbursch und das Kätzchen',\n",
917
- " 'Willy Wonka & the Chocolate Factory',\n",
918
- " 'The Devils',\n",
919
- " 'Two-Lane Blacktop',\n",
920
- " 'The Hunting Party',\n",
921
- " 'Wake in Fright',\n",
922
- " 'Requiem for a Vampire',\n",
923
- " 'Night of Dark Shadows',\n",
924
- " 'The Hired Hand',\n",
925
- " 'The Battle of Okinawa',\n",
926
- " 'The Decameron',\n",
927
- " 'The Bloodstained Butterfly',\n",
928
- " 'Red Sun',\n",
929
- " 'The Story of Romance and Knife',\n",
930
- " 'The Big Boss',\n",
931
- " 'Twins of Evil',\n",
932
- " 'The Olsen Gang in Jutland',\n",
933
- " 'Out 1',\n",
934
- " 'Dr Jekyll & Sister Hyde',\n",
935
- " 'Trinity Is Still My Name',\n",
936
- " 'Brute Corps',\n",
937
- " 'Duel',\n",
938
- " 'Death Walks on High Heels',\n",
939
- " 'Diamonds Are Forever',\n",
940
- " 'Gentlemen of Fortune',\n",
941
- " 'The Apple War',\n",
942
- " 'Polanski Meets Macbeth',\n",
943
- " 'Evil Come Evil Go',\n",
944
- " 'Weekend of a Champion',\n",
945
- " 'All the Colors of the Dark',\n",
946
- " 'Antony and Cleopatra',\n",
947
- " 'Amuck!',\n",
948
- " 'The Culpepper Cattle Co.',\n",
949
- " \"Reality's Invisible\",\n",
950
- " 'Five Fingers of Death',\n",
951
- " 'Cuadecuc, Vampir',\n",
952
- " 'Far from the Trees',\n",
953
- " 'The Other',\n",
954
- " 'Frenzy',\n",
955
- " 'Toys Are Not for Children',\n",
956
- " 'My Childhood',\n",
957
- " 'Boxcar Bertha',\n",
958
- " 'The Canterbury Tales',\n",
959
- " 'Dr. Phibes Rises Again',\n",
960
- " 'Straight On Till Morning',\n",
961
- " 'Fat City',\n",
962
- " 'One-Armed Boxer',\n",
963
- " 'Your Vice Is a Locked Room and Only I Have the Key',\n",
964
- " \"Decamerone '300\",\n",
965
- " 'Slaughter',\n",
966
- " 'The Red Queen Kills Seven Times',\n",
967
- " 'Blacula',\n",
968
- " 'The Last House on the Left',\n",
969
- " 'The Italian Connection',\n",
970
- " \"Don't Torture a Duckling\",\n",
971
- " 'The Bitter Tears of Petra von Kant',\n",
972
- " 'The Mechanic',\n",
973
- " \"The Olsen Gang's Big Score\",\n",
974
- " 'Cesar and Rosalie',\n",
975
- " 'New Mischief by Emil',\n",
976
- " \"Ulzana's Raid\",\n",
977
- " 'Moonwalk One',\n",
978
- " 'Demons of the Mind',\n",
979
- " 'The Call of the Wild',\n",
980
- " 'Love and Death in the Garden of the Gods',\n",
981
- " 'What?',\n",
982
- " \"Child's Play\",\n",
983
- " 'Panda! Go Panda!',\n",
984
- " 'I Am Frigid...Why?',\n",
985
- " 'Aguirre, the Wrath of God',\n",
986
- " 'Tales That Witness Madness',\n",
987
- " 'Orfeo 9',\n",
988
- " 'Psychomania',\n",
989
- " 'Battles Without Honor and Humanity',\n",
990
- " 'The Boss',\n",
991
- " 'Panda! Go Panda!: Rainy Day Circus',\n",
992
- " 'Female Vampire',\n",
993
- " \"Seven Deaths in the Cat's Eye\",\n",
994
- " 'The Iron Rose',\n",
995
- " 'Leptirica',\n",
996
- " 'Hitler: The Last Ten Days',\n",
997
- " 'Ciao! Manhattan',\n",
998
- " 'High Plains Drifter',\n",
999
- " 'Ganja & Hess',\n",
1000
- " 'Battles Without Honor and Humanity: Deadly Fight in Hiroshima',\n",
1001
- " 'Thriller: A Cruel Picture',\n",
1002
- " 'Lisa and the Devil',\n",
1003
- " 'Paper Moon',\n",
1004
- " \"Count Dracula's Great Love\",\n",
1005
- " 'The Day of the Jackal',\n",
1006
- " 'Emperor of the North',\n",
1007
- " 'Day for Night',\n",
1008
- " 'Anna and the Wolves',\n",
1009
- " \"The Loreley's Grasp\",\n",
1010
- " 'The School of Mischief',\n",
1011
- " 'Badge 373',\n",
1012
- " 'The MacKintosh Man',\n",
1013
- " 'American Graffiti',\n",
1014
- " 'Schoolgirl Hitchhikers',\n",
1015
- " 'Enter the Dragon',\n",
1016
- " 'Charley Varrick',\n",
1017
- " 'The Olsen Gang Runs Amok',\n",
1018
- " 'Badlands',\n",
1019
- " 'In Desert and Wilderness',\n",
1020
- " 'Dr. Seuss on the Loose',\n",
1021
- " 'The Way We Were',\n",
1022
- " \"Karamurat: The Sultan's Warrior\",\n",
1023
- " 'Stardust',\n",
1024
- " 'Some Call It Loving',\n",
1025
- " 'Three Wishes for Cinderella',\n",
1026
- " 'A Charlie Brown Thanksgiving',\n",
1027
- " 'The Catholics',\n",
1028
- " 'The Holy Mountain',\n",
1029
- " 'My Ain Folk',\n",
1030
- " 'Fantastic Planet',\n",
1031
- " 'The Hourglass Sanatorium',\n",
1032
- " 'My Name Is Nobody',\n",
1033
- " 'The Seven-Ups',\n",
1034
- " 'Sleeper',\n",
1035
- " 'Rabid Dogs',\n",
1036
- " 'The Traveler',\n",
1037
- " 'Earthquake',\n",
1038
- " 'Heroes Two',\n",
1039
- " 'Zardoz',\n",
1040
- " 'Blazing Saddles',\n",
1041
- " 'Spasmo',\n",
1042
- " 'Himiko',\n",
1043
- " 'Crosby, Stills, Nash & Young - Live in Wembley 1974',\n",
1044
- " 'The Red Snowball Tree',\n",
1045
- " 'The Night Porter',\n",
1046
- " 'The Conversation',\n",
1047
- " \"It's the Easter Beagle, Charlie Brown\",\n",
1048
- " 'Autostop-Lustreport',\n",
1049
- " 'Symptoms',\n",
1050
- " 'Fury In Storm',\n",
1051
- " 'Alice in the Cities',\n",
1052
- " 'Madhouse',\n",
1053
- " 'Swallows and Amazons',\n",
1054
- " 'Appassionata',\n",
1055
- " 'The Legend of the 7 Golden Vampires',\n",
1056
- " 'Mr. Majestyk',\n",
1057
- " 'Flesh Gordon',\n",
1058
- " 'Joachim, Put It in the Machine',\n",
1059
- " 'The Last Exploits of the Olsen Gang',\n",
1060
- " 'Challenge to White Fang',\n",
1061
- " 'Lenny',\n",
1062
- " 'Shadowman',\n",
1063
- " 'The Man with the Golden Gun',\n",
1064
- " 'Young Frankenstein',\n",
1065
- " 'We All Loved Each Other So Much',\n",
1066
- " 'Seasons of the Year',\n",
1067
- " 'The Police Are Blundering in the Dark',\n",
1068
- " 'Maso and Miso Go Boating',\n",
1069
- " 'Night of the Howling Beast',\n",
1070
- " 'A.K.A. Serial Killer',\n",
1071
- " 'Leave Us Alone',\n",
1072
- " 'Saturday Night at the Baths',\n",
1073
- " 'The Promised Land',\n",
1074
- " 'Deep Red',\n",
1075
- " 'The Softening of the Egg',\n",
1076
- " 'The Battle of Chile: Part I',\n",
1077
- " 'Escape to Witch Mountain',\n",
1078
- " 'Let Joy Reign Supreme',\n",
1079
- " 'Monty Python and the Holy Grail',\n",
1080
- " 'The Romantic Englishwoman',\n",
1081
- " 'A Guy and a Gal',\n",
1082
- " 'The Hot Nights of Linda',\n",
1083
- " 'The Suspicious Death of a Minor',\n",
1084
- " 'The Rocky Horror Picture Show',\n",
1085
- " 'Sholay',\n",
1086
- " 'Cry, Onion!',\n",
1087
- " 'The Olsen Gang on the Track',\n",
1088
- " 'The Giant Spider Invasion',\n",
1089
- " 'Hester Street',\n",
1090
- " 'Winterhawk',\n",
1091
- " 'Notes Towards an African Orestes',\n",
1092
- " 'Release the Prisoners to Spring',\n",
1093
- " 'Breakheart Pass',\n",
1094
- " 'Emmanuelle: The Joys of a Woman',\n",
1095
- " 'A Genius, Two Friends, and an Idiot',\n",
1096
- " 'Get Mean',\n",
1097
- " 'Queen - A Night at the Odeon',\n",
1098
- " 'House of Mortal Sin',\n",
1099
- " 'Illustrious Corpses',\n",
1100
- " 'Could We Maybe',\n",
1101
- " 'The Message',\n",
1102
- " 'The Judge and the Assassin',\n",
1103
- " 'The Battle of Chile: Part II',\n",
1104
- " 'Werewolf Woman',\n",
1105
- " 'The Man Who Fell to Earth',\n",
1106
- " 'Sparkle',\n",
1107
- " 'Zebra Force',\n",
1108
- " 'Who Can Kill a Child?',\n",
1109
- " 'The Innocent',\n",
1110
- " 'The Premonition',\n",
1111
- " 'The Tenant',\n",
1112
- " 'The Omen',\n",
1113
- " 'The Bottom Line',\n",
1114
- " 'Hand of Death',\n",
1115
- " 'Obsession',\n",
1116
- " 'The Con Artists',\n",
1117
- " \"The Devil's Playground\",\n",
1118
- " 'America of the seventies. Two New York City',\n",
1119
- " 'Man on the Roof',\n",
1120
- " 'The Olsen Gang Sees Red',\n",
1121
- " ...]"
1122
- ]
1123
- },
1124
- "execution_count": 4,
1125
- "metadata": {},
1126
- "output_type": "execute_result"
1127
- }
1128
- ],
1129
- "source": [
1130
- "title"
1131
- ]
1132
- },
1133
- {
1134
- "cell_type": "code",
1135
- "execution_count": 5,
1136
- "id": "357136d0",
1137
- "metadata": {},
1138
- "outputs": [],
1139
- "source": [
1140
- "from sentence_transformers import SentenceTransformer\n",
1141
- "\n",
1142
- "model = SentenceTransformer(\"sentence-transformers/all-mpnet-base-v2\")"
1143
- ]
1144
- },
1145
- {
1146
- "cell_type": "code",
1147
- "execution_count": 6,
1148
- "id": "7178e818",
1149
- "metadata": {},
1150
- "outputs": [
1151
- {
1152
- "data": {
1153
- "text/plain": [
1154
- "['Agnes May Turner on a swing, early color film.',\n",
1155
- " 'Scarlet Macaw on a perch, early color film.',\n",
1156
- " 'A family troupe of acrobats, made up to appear Japanese, perform various unbelievable stunts in front of the camera, achieved through a trick of the camera.',\n",
1157
- " \"Two families, abolitionist Northerners the Stonemans and Southern landowners the Camerons, intertwine. When Confederate colonel Ben Cameron is captured in battle, nurse Elsie Stoneman petitions for his pardon. In Reconstruction-era South Carolina, Cameron founds the Ku Klux Klan, battling Elsie's congressman father and his African-American protégé, Silas Lynch.\",\n",
1158
- " 'A drunken homeowner has a difficult time getting about in his home after arriving home late at night.',\n",
1159
- " \"The daring convict no. 23, known as The Eel, escapes from prison and, after mocking his inept persecutors, saves the lives of three people in peril: a beautiful girl, her mother and an annoying suitor, only to get exhausted and almost drowned. Once he regains his strength at Judge Brown's home, he participates on an upper-class social party where he competes with the suitor for the favors of the charming Miss Brown. But prison guards are still after him…\",\n",
1160
- " 'The Tramp and his dog companion struggle to survive in the inner city.',\n",
1161
- " 'A young man is elected by a small village to be its parson. As part of his duties, he is required to marry the widow of the parson before him. This poses two problems--first, the widow is old enough to be his grandmother, and second, he is already engaged to another woman.',\n",
1162
- " 'Silent Madden and his daughter Molly have left the criminal underworld of San Francisco thanks to the wise teachings of Chang Low, a Confucian master. But the evil Black Mike Sylva is determined to frame Madden to avenge a mistake from the past…',\n",
1163
- " 'Three men in London compete for the love of a dance-hall girl.',\n",
1164
- " 'As a young couple stops and rests in a small village inn, the man is abducted by Death and is sequestered behind a huge doorless, windowless wall. The woman finds a mystic entrance and is met by Death, who tells her three separate stories set in exotic locales, all involving circumstances similar to hers.',\n",
1165
- " 'Sheik Ahmed desperately desires feisty British socialite Diana, so he abducts her and carries her off to his luxurious tent-palace in the desert. The free-spirited Diana recoils from his passionate embraces and yearns to be released. Later, allowed to go into the desert, she escapes and makes her way across the sands...',\n",
1166
- " 'A young woman marries an older millionaire and then falls in love with a handsome nobleman on her honeymoon.',\n",
1167
- " \"This pioneering documentary film depicts the lives of the indigenous Inuit people of Canada's northern Quebec region. Although the production contains some fictional elements, it vividly shows how its resourceful subjects survive in such a harsh climate, revealing how they construct their igloo homes and find food by hunting and fishing. The film also captures the beautiful, if unforgiving, frozen landscape of the Great White North, far removed from conventional civilization.\",\n",
1168
- " 'The Tramp is an escaped convict who is mistaken as a pastor in a small town church.',\n",
1169
- " \"Professor Stock and his wife Mizzi are uhappily married. The professor, suspicious of his wife, hires a detective to spy on her in hopes of obtaining a divorce. Mizzi sets her sights on seducing Dr. Franz Braun, the new husband of her good friend Charlotte. Dr. Braun's colleague, Dr. Mueller, who has his eye on Charlotte, sees this as his opportunity. Through a misunderstanding, Charlotte thinks that her husband is interested in Miss Hofer, and asks Mizzi to keep him occupied... around and around the circle goes in Lubitsch's refined comedy of mistaken infidelity.\",\n",
1170
- " 'In the Republic of Utopia, because of the bad economic crisis ailing the nation, the Jews are made the scapegoats for the economic and social ills affecting the population; therefore, the government decides to expel them. Leo Strakosch is among the exiled. He is engaged to Counsellor\\'s Linder\\'s daughter. He gets into the Republic, in a clandestine way, to show to the society the wrongness of their anti-semitic prejudice. Bettauer\\'s novel differs essentially from the film version. \"Vienna\" was named \"Utopia\". Even a happy ending was provided.',\n",
1171
- " 'A silent documentary which follows a branch of the Bakhtiari tribe of Persia as they and their herds make their seasonal journey to better pastures.',\n",
1172
- " 'A lone prospector ventures into Alaska looking for gold. He soon gets mixed up with some burly characters, falls in love with the beautiful Georgia, and tries to win her heart with his singular charm.',\n",
1173
- " 'With little luck at keeping a job in the city a New Yorker tries work in the country and eventually finds his way leading a herd of cattle to the West Coast.',\n",
1174
- " 'This is the story of a samurai who falls on hard times due to misunderstandings and and follows the plots of his enemies.',\n",
1175
- " 'Erstwhile childhood friends, Judah Ben-Hur and Messala meet again as adults, this time with Roman officer Messala as conqueror and Judah as a wealthy, though conquered, Israelite. A slip of a brick during a Roman parade causes Judah to be sent off as a galley slave, his property confiscated and his mother and sister imprisoned. Years later, as a result of his determination to stay alive and his willingness to aid his Roman master, Judah returns to his homeland an exalted and wealthy Roman athlete. Unable to find his mother and sister, and believing them dead, he can think of nothing else than revenge against Messala.',\n",
1176
- " \"Emak-Bakia (Basque for Leave me alone) is a 1926 film directed by Man Ray. Subtitled as a cinépoéme, it features many techniques Man Ray used in his still photography (for which he is better known), including Rayographs, double exposure, soft focus and ambiguous features. The film features sculptures by Pablo Picasso, and some of Man Ray's mathematical objects both still and animated using a stop motion technique.\",\n",
1177
- " 'Based on stories from \"The Arabian Nights\". A wicked sorcerer tricks Prince Achmed into riding a magical flying horse. The heroic prince is able to subdue the magical horse, which he uses to fly off to many adventures. While travelling, he falls in love with the beautiful Princess Peri Banu, and must defeat an army of demons to win her heart. The film is animated using the silhouette technique.',\n",
1178
- " \"A biopic of Napoleon Bonaparte, tracing the Corsican's career from his schooldays (where a snowball fight is staged like a military campaign) to his flight from Corsica, through the French Revolution (where a real storm is intercut with a political storm) and the Terror, culminating in his triumphant invasion of Italy in 1797. Originally intended to be the first of six films, director Abel Gance realized the full project would be nigh impossible, and never raised the money to complete the other five. The film's legendary reputation is due to the astonishing range of techniques that Gance uses to tell his story, culminating in the final twenty-minute triptych sequence, which alternates widescreen panoramas with complex multiple- image montages projected simultaneously on three screens.\",\n",
1179
- " \"Two young men, one rich, one middle class, both in love with the same woman, become US Air Corps fighter pilots and, eventually, heroic flying aces during World War I. Devoted best friends, their mutual love of the girl eventually threatens their bond. Meanwhile, a hometown girl who's the lovestruck lifelong next door neighbor of one of them, pines away.\",\n",
1180
- " 'Mismatched travellers are stranded overnight at a lonely rural railway station. They soon learn of local superstition about a phantom train which is said to travel these parts at dead of night, carrying ghosts from a long-ago train wreck in the area. The travelers eventually get to the bottom of the things that go bump in the night.',\n",
1181
- " 'The film focuses on the naval warfare around the Battle of Coronel and Battle of the Falkland Islands during the First World War. It was the last in a successful series of documentary reconstructions of First World War battles by British Instructional Films made between 1921 and 1927.',\n",
1182
- " 'A visual celebration of Manhattan and its waterways on the 300th anniversary of purchase from the local Native Americans.',\n",
1183
- " 'Directed by Kote Mardzhanishvili Production: Georgia Goskinprom The fate of two Georgian schoolchildren, Gogi and Kiko, who share a love of painting, a dream to go to art school. The action of the film begins on the eve of the October Revolution.',\n",
1184
- " 'A former Imperial Russian general and cousin of the Czar ends up in Hollywood as an extra in a movie directed by a former revolutionary.',\n",
1185
- " 'John, an ambitious but undisciplined New York City office worker, meets and marries Mary. They start a family, struggle to cope with marital stress, financial setbacks, and tragedy, all while lost amid the anonymous, pitiless throngs of the big city.',\n",
1186
- " 'On the islet Bannec, off the coast of Brittany, four fishermen have set up camp for three months to harvest seaweed. If processed correctly, the ash of the seaweed can be sold for high prices. It is therefore burnt in several large piles on the island.',\n",
1187
- " 'A cameraman wanders around Moscow, Kharkiv, Kyiv and Odessa with a camera slung over his shoulder, documenting urban life with dazzling invention.',\n",
1188
- " \"The vaudeville act of Harriet and Queenie Mahoney comes to Broadway, where their friend Eddie Kerns needs them for his number in one of Francis Zanfield's shows. When Eddie meets Queenie, he soon falls in love with her—but she is already being courted by Jock Warriner, a member of New York high society. Queenie eventually recognises that, to Jock, she is nothing more than a toy, and that Eddie is in love with her.\",\n",
1189
- " 'A soldier returns to Kyiv after surviving a train crash and encounters clashes between nationalists and collectivists.',\n",
1190
- " 'Womanizer Don Mateo helps a girl in a train when attacked by a other woman. This girl, Conchita - a cigarette maker, soon visits the rich Don Mateo at his palace in Sevillia. He falls for her, but she likes to play with him.',\n",
1191
- " 'Un Chien Andalou is an European avant-garde surrealist film, a collaboration between director Luis Buñuel and Salvador Dali.',\n",
1192
- " \"Thymian Henning, an innocent young girl, is raped by the clerk of her father's pharmacy. She becomes pregnant, is rejected by her family, and must fend for herself in a harsh, cruel world.\",\n",
1193
- " \"On a volcanic island near the kingdom of Hetvia rules Count Dakkar, a benevolent leader and scientist who has eliminated class distinction among the island's inhabitants. Dakkar, his daughter Sonia and her fiance, engineer Nicolai Roget have designed a submarine which Roget pilots on its initial voyage just before the island is overrun by Baron Falon, despotic ruler of Hetvia. Falon sets out after Roget in a second submarine and the two craft, diving to the ocean's floor, discover a strange land populated by dragons, giant squid and an eerie undiscovered humanoid race.\",\n",
1194
- " \"A scientist discovers that there's gold on the moon. He builds a rocket to fly there, but there's too much rivalry among the crew to have a successful expedition.\",\n",
1195
- " 'When a woman is convicted of murder, one of the jurors selected to serve on the murder-trial jury believes the accused, an aspiring actress, is innocent of the crime and takes it upon himself to apprehend the real killer.',\n",
1196
- " 'In 1930, during what became known as the Industrial Party Trial, some members of the Soviet technical elite were tried for plotting to form a counter-revolutionary party. This documentary depicts that trial, in which a dozen men are prosecuted for crimes against the Russian Revolution. They promptly confess and are given the chance to address the court with an explanation. Full of remorse, they plead for the opportunity to pay off their debt to society by working. Then they wait for their sentence.',\n",
1197
- " 'British estate agent Renfield travels to Transylvania to meet with the mysterious Count Dracula, who is interested in leasing a castle in London and is, unbeknownst to Renfield, a vampire. After Dracula enslaves Renfield and drives him to insanity, the pair sail to London together, and as Dracula begins preying on London socialites, the two become the subject of study for a supernaturalist professor, Abraham Van Helsing.',\n",
1198
- " 'Based on a hit song by child star Hideko Hirai from 1929, this gem -- a real historical curiosity -- provides glimpses of 1930s popular culture through introducing the typical life of a bright, energetic young girl. It contains an early product placement (for Lion Toothpaste), educational content and newsreel footage of Japan’s first woman Olympic medalist, Kinue Hitomi.',\n",
1199
- " 'Jirokichi the Rat is wanted in Edo for robbing the mansions of the rich. While on the run, he falls for Osen, a girl who has been sold to a brothel by her criminal brother, Nikichi. When he goes to find Nikichi, Jirokichi immediately falls for Okino, a poor girl who is also under threat from Nikichi.',\n",
1200
- " 'In 19th Century Paris, the maniacal Dr. Mirakle abducts young women and injects them with ape blood in an attempt to prove ape-human kinship. He constantly meets failure as the abducted women die. Medical student Pierre Dupin discovers what Mirakle is doing too late to prevent the abduction of his girlfriend Camille. Now he desperately tries to enlist the help of the police to get her back.',\n",
1201
- " 'The young and patriotic student Demachy joins the French army in 1914 to defend his country. But he and his comrades soon experience the terrifying, endless trench war in Champagne, where more and more wooden crosses have to be erected for this cannon fodder.',\n",
1202
- " 'A drunken newspaperman, Jerry Corbett, is rescued from his alcoholic haze by an heiress, Joan Prentice, whose love sobers him up and encourages him to write a play, but he lapses back into dipsomania.',\n",
1203
- " 'The ruthless Flint, a disabled man, rules an isolated region of Kongo like an omnipotent god, through superstition and sadism, living only for the day when he can get revenge on the man who ruined his life.']"
1204
- ]
1205
- },
1206
- "execution_count": 6,
1207
- "metadata": {},
1208
- "output_type": "execute_result"
1209
- }
1210
- ],
1211
- "source": [
1212
- "sample = overview[:50]\n",
1213
- "sample"
1214
- ]
1215
- },
1216
- {
1217
- "cell_type": "code",
1218
- "execution_count": 7,
1219
- "id": "dc27d1c2",
1220
- "metadata": {},
1221
- "outputs": [
1222
- {
1223
- "name": "stdout",
1224
- "output_type": "stream",
1225
- "text": [
1226
- "[[ 0.01220874 -0.03108018 0.01445038 ... 0.02633106 -0.02455255\n",
1227
- " -0.01754345]\n",
1228
- " [ 0.01134097 -0.01951738 0.02044572 ... 0.03591407 0.01836473\n",
1229
- " -0.00015718]\n",
1230
- " [-0.03111103 -0.02594728 -0.00194631 ... 0.02243094 0.03856969\n",
1231
- " -0.02781878]\n",
1232
- " ...\n",
1233
- " [ 0.00355733 0.04139061 0.01821056 ... 0.03794003 0.04286192\n",
1234
- " -0.03050483]\n",
1235
- " [ 0.0489408 0.06491196 0.03135632 ... -0.03474905 0.05695753\n",
1236
- " -0.02019452]\n",
1237
- " [ 0.03106842 -0.01359484 0.00312191 ... 0.01560109 -0.02885172\n",
1238
- " -0.01390004]]\n"
1239
- ]
1240
- }
1241
- ],
1242
- "source": [
1243
- "vectors = model.encode(sample)\n",
1244
- "print(vectors)"
1245
- ]
1246
- },
1247
- {
1248
- "cell_type": "code",
1249
- "execution_count": 8,
1250
- "id": "350f2fc3",
1251
- "metadata": {},
1252
- "outputs": [],
1253
- "source": [
1254
- "import faiss\n",
1255
- "\n",
1256
- "vector_dimension = vectors.shape[1]\n",
1257
- "index = faiss.IndexFlatL2(vector_dimension)\n",
1258
- "faiss.normalize_L2(vectors)\n",
1259
- "index.add(vectors)"
1260
- ]
1261
- },
1262
- {
1263
- "cell_type": "code",
1264
- "execution_count": 9,
1265
- "id": "f5e45aa8",
1266
- "metadata": {},
1267
- "outputs": [],
1268
- "source": [
1269
- "import numpy as np\n",
1270
- "\n",
1271
- "def get_model_generated_vector(text): \n",
1272
- " search_vector = model.encode(text)\n",
1273
- " vector = np.array([search_vector])\n",
1274
- " faiss.normalize_L2(vector)\n",
1275
- " return vector\n"
1276
- ]
1277
- },
1278
- {
1279
- "cell_type": "code",
1280
- "execution_count": 10,
1281
- "id": "4ed29ec0",
1282
- "metadata": {},
1283
- "outputs": [],
1284
- "source": [
1285
- "def find_top_k_matched(vector):\n",
1286
- " distances, ann = index.search(vector, k=5)\n",
1287
- " return [title[ann[0][0]], title[ann[0][1]], title[ann[0][2]], title[ann[0][3]], title[ann[0][4]]]"
1288
- ]
1289
- },
1290
- {
1291
- "cell_type": "code",
1292
- "execution_count": 11,
1293
- "id": "e6cadd8d",
1294
- "metadata": {
1295
- "scrolled": true
1296
- },
1297
- "outputs": [],
1298
- "source": [
1299
- "# import pandas as pd\n",
1300
- "# results = pd.DataFrame({'distances': distances[0], 'ann': ann[0]})\n",
1301
- "# results"
1302
- ]
1303
- },
1304
- {
1305
- "cell_type": "code",
1306
- "execution_count": 12,
1307
- "id": "4e5a831b",
1308
- "metadata": {},
1309
- "outputs": [
1310
- {
1311
- "name": "stdout",
1312
- "output_type": "stream",
1313
- "text": [
1314
- "huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...\n",
1315
- "To disable this warning, you can either:\n",
1316
- "\t- Avoid using `tokenizers` before the fork if possible\n",
1317
- "\t- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)\n",
1318
- "Defaulting to user installation because normal site-packages is not writeable\n",
1319
- "Requirement already satisfied: gradio in /home/z/.local/lib/python3.10/site-packages (3.27.0)\n",
1320
- "Requirement already satisfied: fastapi in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.95.1)\n",
1321
- "Requirement already satisfied: gradio-client>=0.1.3 in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.1.3)\n",
1322
- "Requirement already satisfied: httpx in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.24.0)\n",
1323
- "Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from gradio) (9.0.1)\n",
1324
- "Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from gradio) (5.4.1)\n",
1325
- "Requirement already satisfied: numpy in /home/z/.local/lib/python3.10/site-packages (from gradio) (1.23.5)\n",
1326
- "Requirement already satisfied: pandas in /home/z/.local/lib/python3.10/site-packages (from gradio) (2.0.0)\n",
1327
- "Requirement already satisfied: huggingface-hub>=0.13.0 in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.13.4)\n",
1328
- "Requirement already satisfied: pydub in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.25.1)\n",
1329
- "Requirement already satisfied: altair>=4.2.0 in /home/z/.local/lib/python3.10/site-packages (from gradio) (4.2.2)\n",
1330
- "Requirement already satisfied: python-multipart in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.0.6)\n",
1331
- "Requirement already satisfied: aiofiles in /home/z/.local/lib/python3.10/site-packages (from gradio) (23.1.0)\n",
1332
- "Requirement already satisfied: markupsafe in /home/z/.local/lib/python3.10/site-packages (from gradio) (2.1.2)\n",
1333
- "Requirement already satisfied: uvicorn in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.21.1)\n",
1334
- "Requirement already satisfied: aiohttp in /home/z/.local/lib/python3.10/site-packages (from gradio) (3.8.4)\n",
1335
- "Requirement already satisfied: typing-extensions in /home/z/.local/lib/python3.10/site-packages (from gradio) (4.5.0)\n",
1336
- "Requirement already satisfied: jinja2 in /home/z/.local/lib/python3.10/site-packages (from gradio) (3.1.2)\n",
1337
- "Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from gradio) (2.25.1)\n",
1338
- "Requirement already satisfied: mdit-py-plugins<=0.3.3 in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.3.3)\n",
1339
- "Requirement already satisfied: websockets>=10.0 in /home/z/.local/lib/python3.10/site-packages (from gradio) (11.0.2)\n",
1340
- "Requirement already satisfied: orjson in /home/z/.local/lib/python3.10/site-packages (from gradio) (3.8.10)\n",
1341
- "Requirement already satisfied: pydantic in /home/z/.local/lib/python3.10/site-packages (from gradio) (1.10.7)\n",
1342
- "Requirement already satisfied: semantic-version in /home/z/.local/lib/python3.10/site-packages (from gradio) (2.10.0)\n",
1343
- "Requirement already satisfied: markdown-it-py[linkify]>=2.0.0 in /home/z/.local/lib/python3.10/site-packages (from gradio) (2.2.0)\n",
1344
- "Requirement already satisfied: matplotlib in /home/z/.local/lib/python3.10/site-packages (from gradio) (3.7.1)\n",
1345
- "Requirement already satisfied: ffmpy in /home/z/.local/lib/python3.10/site-packages (from gradio) (0.3.0)\n",
1346
- "Requirement already satisfied: entrypoints in /home/z/.local/lib/python3.10/site-packages (from altair>=4.2.0->gradio) (0.4)\n",
1347
- "Requirement already satisfied: toolz in /home/z/.local/lib/python3.10/site-packages (from altair>=4.2.0->gradio) (0.12.0)\n",
1348
- "Requirement already satisfied: jsonschema>=3.0 in /home/z/.local/lib/python3.10/site-packages (from altair>=4.2.0->gradio) (4.17.3)\n",
1349
- "Requirement already satisfied: fsspec in /home/z/.local/lib/python3.10/site-packages (from gradio-client>=0.1.3->gradio) (2023.4.0)\n",
1350
- "Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from gradio-client>=0.1.3->gradio) (21.3)\n",
1351
- "Requirement already satisfied: filelock in /usr/lib/python3/dist-packages (from huggingface-hub>=0.13.0->gradio) (3.6.0)\n",
1352
- "Requirement already satisfied: tqdm>=4.42.1 in /home/z/.local/lib/python3.10/site-packages (from huggingface-hub>=0.13.0->gradio) (4.65.0)\n",
1353
- "Requirement already satisfied: mdurl~=0.1 in /home/z/.local/lib/python3.10/site-packages (from markdown-it-py[linkify]>=2.0.0->gradio) (0.1.2)\n",
1354
- "Requirement already satisfied: linkify-it-py<3,>=1 in /home/z/.local/lib/python3.10/site-packages (from markdown-it-py[linkify]>=2.0.0->gradio) (2.0.0)\n",
1355
- "Requirement already satisfied: python-dateutil>=2.8.2 in /home/z/.local/lib/python3.10/site-packages (from pandas->gradio) (2.8.2)\n",
1356
- "Requirement already satisfied: tzdata>=2022.1 in /home/z/.local/lib/python3.10/site-packages (from pandas->gradio) (2023.3)\n",
1357
- "Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3/dist-packages (from pandas->gradio) (2022.1)\n",
1358
- "Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->gradio) (3.1.0)\n",
1359
- "Requirement already satisfied: aiosignal>=1.1.2 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->gradio) (1.3.1)\n",
1360
- "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->gradio) (4.0.2)\n",
1361
- "Requirement already satisfied: frozenlist>=1.1.1 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->gradio) (1.3.3)\n",
1362
- "Requirement already satisfied: attrs>=17.3.0 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->gradio) (22.2.0)\n",
1363
- "Requirement already satisfied: yarl<2.0,>=1.0 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->gradio) (1.9.1)\n",
1364
- "Requirement already satisfied: multidict<7.0,>=4.5 in /home/z/.local/lib/python3.10/site-packages (from aiohttp->gradio) (6.0.4)\n",
1365
- "Requirement already satisfied: starlette<0.27.0,>=0.26.1 in /home/z/.local/lib/python3.10/site-packages (from fastapi->gradio) (0.26.1)\n",
1366
- "Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /home/z/.local/lib/python3.10/site-packages (from httpx->gradio) (0.17.0)\n",
1367
- "Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx->gradio) (2020.6.20)\n",
1368
- "Requirement already satisfied: sniffio in /home/z/.local/lib/python3.10/site-packages (from httpx->gradio) (1.3.0)\n",
1369
- "Requirement already satisfied: idna in /usr/lib/python3/dist-packages (from httpx->gradio) (3.3)\n",
1370
- "Requirement already satisfied: cycler>=0.10 in /home/z/.local/lib/python3.10/site-packages (from matplotlib->gradio) (0.11.0)\n",
1371
- "Requirement already satisfied: fonttools>=4.22.0 in /home/z/.local/lib/python3.10/site-packages (from matplotlib->gradio) (4.39.3)\n",
1372
- "Requirement already satisfied: pyparsing>=2.3.1 in /usr/lib/python3/dist-packages (from matplotlib->gradio) (2.4.7)\n",
1373
- "Requirement already satisfied: kiwisolver>=1.0.1 in /home/z/.local/lib/python3.10/site-packages (from matplotlib->gradio) (1.4.4)\n",
1374
- "Requirement already satisfied: contourpy>=1.0.1 in /home/z/.local/lib/python3.10/site-packages (from matplotlib->gradio) (1.0.7)\n",
1375
- "Requirement already satisfied: click>=7.0 in /usr/lib/python3/dist-packages (from uvicorn->gradio) (8.0.3)\n",
1376
- "Requirement already satisfied: h11>=0.8 in /home/z/.local/lib/python3.10/site-packages (from uvicorn->gradio) (0.14.0)\n",
1377
- "Requirement already satisfied: anyio<5.0,>=3.0 in /home/z/.local/lib/python3.10/site-packages (from httpcore<0.18.0,>=0.15.0->httpx->gradio) (3.6.2)\n",
1378
- "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /home/z/.local/lib/python3.10/site-packages (from jsonschema>=3.0->altair>=4.2.0->gradio) (0.19.3)\n",
1379
- "Requirement already satisfied: uc-micro-py in /home/z/.local/lib/python3.10/site-packages (from linkify-it-py<3,>=1->markdown-it-py[linkify]>=2.0.0->gradio) (1.0.1)\n",
1380
- "Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.2->pandas->gradio) (1.16.0)\n",
1381
- "Note: you may need to restart the kernel to use updated packages.\n"
1382
- ]
1383
- }
1384
- ],
1385
- "source": [
1386
- "%pip install gradio"
1387
- ]
1388
- },
1389
- {
1390
- "cell_type": "code",
1391
- "execution_count": 13,
1392
- "id": "8b0d56ed",
1393
- "metadata": {},
1394
- "outputs": [
1395
- {
1396
- "name": "stdout",
1397
- "output_type": "stream",
1398
- "text": [
1399
- "Running on local URL: http://127.0.0.1:7860\n",
1400
- "\n",
1401
- "To create a public link, set `share=True` in `launch()`.\n"
1402
- ]
1403
- },
1404
- {
1405
- "data": {
1406
- "text/html": [
1407
- "<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
1408
- ],
1409
- "text/plain": [
1410
- "<IPython.core.display.HTML object>"
1411
- ]
1412
- },
1413
- "metadata": {},
1414
- "output_type": "display_data"
1415
- }
1416
- ],
1417
- "source": [
1418
- "import gradio as gr \n",
1419
- "from gradio.components import Label, Textbox\n",
1420
- "\n",
1421
- "def movie_recommandation(text):\n",
1422
- " vector = get_model_generated_vector(text) \n",
1423
- " matches = find_top_k_matched(vector) \n",
1424
- "# print(matches) \n",
1425
- " return matches[0], matches[1], matches[2], matches[3], matches[4]\n",
1426
- "\n",
1427
- "demo = gr.Interface(\n",
1428
- " fn=movie_recommandation, \n",
1429
- " inputs=gr.Textbox(placeholder=\"Enter the Movie Name\"), \n",
1430
- " outputs=[Label() for i in range(5)], \n",
1431
- " examples=[[\"Scarlet Macaw on Perch\"], [\"horror\"]])\n",
1432
- "\n",
1433
- "demo.launch(debug=True)"
1434
- ]
1435
- }
1436
- ],
1437
- "metadata": {
1438
- "kernelspec": {
1439
- "display_name": "Python 3 (ipykernel)",
1440
- "language": "python",
1441
- "name": "python3"
1442
- },
1443
- "language_info": {
1444
- "codemirror_mode": {
1445
- "name": "ipython",
1446
- "version": 3
1447
- },
1448
- "file_extension": ".py",
1449
- "mimetype": "text/x-python",
1450
- "name": "python",
1451
- "nbconvert_exporter": "python",
1452
- "pygments_lexer": "ipython3",
1453
- "version": "3.10.6"
1454
- }
1455
- },
1456
- "nbformat": 4,
1457
- "nbformat_minor": 5
1458
- }