├── tempCodeRunnerFile.py ├── requirements.txt ├── logo.jpg ├── main2.py ├── movie_list.pkl ├── users.json ├── Dockerfile ├── frontend ├── public │ ├── build │ │ └── public │ │ │ └── build │ │ │ ├── bundle.css │ │ │ └── bundle.css.map │ └── index.html ├── src │ ├── streamlit │ │ ├── index.ts │ │ ├── setStreamlitLifecycle.ts │ │ ├── WithStreamlitConnection.svelte │ │ ├── ArrowTable.ts │ │ └── streamlit.ts │ ├── main.ts │ └── ImageGallery.svelte ├── tsconfig.json ├── package.json ├── rollup.config.js ├── Streamlit-Image-Carousel-master │ └── __init__.py └── package-lock.json ├── .github └── workflows │ └── deploy.yml ├── auth.py ├── login_page.py ├── app2.py └── ml2.ipynb /tempCodeRunnerFile.py: -------------------------------------------------------------------------------- 1 | import pickle 2 | import requests -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | huggingface-hub 2 | streamlit 3 | requests 4 | pickle-mixin 5 | -------------------------------------------------------------------------------- /logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafigeovazi/Movie-Recommendation/HEAD/logo.jpg -------------------------------------------------------------------------------- /main2.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | 3 | data=pd.read_csv('dataset.csv') 4 | 5 | print(data) -------------------------------------------------------------------------------- /movie_list.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rafigeovazi/Movie-Recommendation/HEAD/movie_list.pkl -------------------------------------------------------------------------------- /users.json: -------------------------------------------------------------------------------- 1 | {"BruceWayne": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5", "rafigeovazi": "e2217d3e4e120c6a3372a1890f03e232b35ad659d71f7a62501a4ee204a3e66d", "Ryan Gosling": "65e84be33532fb784c48129675f9eff3a682b27168c0ea744b2cf58ee02337c5"} -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.10-slim 2 | 3 | WORKDIR /app 4 | 5 | COPY requirements.txt requirements.txt 6 | COPY . . 7 | 8 | RUN pip install --upgrade pip && \ 9 | pip install -r requirements.txt 10 | 11 | CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] 12 | -------------------------------------------------------------------------------- /frontend/public/build/public/build/bundle.css: -------------------------------------------------------------------------------- 1 | .scroller.svelte-1q3l3t1{min-height:100px;overflow-x:scroll;overflow-y:hidden;white-space:nowrap}img.svelte-1q3l3t1{display:inline-block;padding:1%;border-radius:20px;opacity:0.9;transition:all .2s}img.svelte-1q3l3t1:hover{opacity:1;transform:scale(1.05);cursor:pointer} 2 | 3 | /*# sourceMappingURL=bundle.css.map */ -------------------------------------------------------------------------------- /frontend/src/streamlit/index.ts: -------------------------------------------------------------------------------- 1 | import type { RenderData as RenderData_ } from "./streamlit"; 2 | import WithStreamlitConnection from "C:/Users/rafig/Documents/PYMovieRecomendation/frontend/src/streamlit/WithStreamlitConnection.svelte"; 3 | 4 | export { ArrowTable } from "./ArrowTable"; 5 | export { Streamlit } from "./streamlit"; 6 | 7 | export { setStreamlitLifecycle } from "./setStreamlitLifecycle"; 8 | export { WithStreamlitConnection }; 9 | 10 | export type RenderData = RenderData_; 11 | -------------------------------------------------------------------------------- /frontend/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 || \n", 50 | " | id | \n", 51 | "title | \n", 52 | "genre | \n", 53 | "original_language | \n", 54 | "overview | \n", 55 | "popularity | \n", 56 | "release_date | \n", 57 | "vote_average | \n", 58 | "vote_count | \n", 59 | "
|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", 64 | "278 | \n", 65 | "The Shawshank Redemption | \n", 66 | "Drama,Crime | \n", 67 | "en | \n", 68 | "Framed in the 1940s for the double murder of h... | \n", 69 | "94.075 | \n", 70 | "1994-09-23 | \n", 71 | "8.7 | \n", 72 | "21862 | \n", 73 | "
| 1 | \n", 76 | "19404 | \n", 77 | "Dilwale Dulhania Le Jayenge | \n", 78 | "Comedy,Drama,Romance | \n", 79 | "hi | \n", 80 | "Raj is a rich, carefree, happy-go-lucky second... | \n", 81 | "25.408 | \n", 82 | "1995-10-19 | \n", 83 | "8.7 | \n", 84 | "3731 | \n", 85 | "
| 2 | \n", 88 | "238 | \n", 89 | "The Godfather | \n", 90 | "Drama,Crime | \n", 91 | "en | \n", 92 | "Spanning the years 1945 to 1955, a chronicle o... | \n", 93 | "90.585 | \n", 94 | "1972-03-14 | \n", 95 | "8.7 | \n", 96 | "16280 | \n", 97 | "
| 3 | \n", 100 | "424 | \n", 101 | "Schindler's List | \n", 102 | "Drama,History,War | \n", 103 | "en | \n", 104 | "The true story of how businessman Oskar Schind... | \n", 105 | "44.761 | \n", 106 | "1993-12-15 | \n", 107 | "8.6 | \n", 108 | "12959 | \n", 109 | "
| 4 | \n", 112 | "240 | \n", 113 | "The Godfather: Part II | \n", 114 | "Drama,Crime | \n", 115 | "en | \n", 116 | "In the continuing saga of the Corleone crime f... | \n", 117 | "57.749 | \n", 118 | "1974-12-20 | \n", 119 | "8.6 | \n", 120 | "9811 | \n", 121 | "
| 5 | \n", 124 | "667257 | \n", 125 | "Impossible Things | \n", 126 | "Family,Drama | \n", 127 | "es | \n", 128 | "Matilde is a woman who, after the death of her... | \n", 129 | "14.358 | \n", 130 | "2021-06-17 | \n", 131 | "8.6 | \n", 132 | "255 | \n", 133 | "
| 6 | \n", 136 | "129 | \n", 137 | "Spirited Away | \n", 138 | "Animation,Family,Fantasy | \n", 139 | "ja | \n", 140 | "A young girl, Chihiro, becomes trapped in a st... | \n", 141 | "92.056 | \n", 142 | "2001-07-20 | \n", 143 | "8.5 | \n", 144 | "13093 | \n", 145 | "
| 7 | \n", 148 | "730154 | \n", 149 | "Your Eyes Tell | \n", 150 | "Romance,Drama | \n", 151 | "ja | \n", 152 | "A tragic accident lead to Kaori's blindness, b... | \n", 153 | "51.345 | \n", 154 | "2020-10-23 | \n", 155 | "8.5 | \n", 156 | "339 | \n", 157 | "
| 8 | \n", 160 | "372754 | \n", 161 | "Dou kyu sei – Classmates | \n", 162 | "Romance,Animation | \n", 163 | "ja | \n", 164 | "Rihito Sajo, an honor student with a perfect s... | \n", 165 | "14.285 | \n", 166 | "2016-02-20 | \n", 167 | "8.5 | \n", 168 | "239 | \n", 169 | "
| 9 | \n", 172 | "372058 | \n", 173 | "Your Name. | \n", 174 | "Romance,Animation,Drama | \n", 175 | "ja | \n", 176 | "High schoolers Mitsuha and Taki are complete s... | \n", 177 | "158.270 | \n", 178 | "2016-08-26 | \n", 179 | "8.5 | \n", 180 | "8895 | \n", 181 | "
| \n", 260 | " | id | \n", 261 | "popularity | \n", 262 | "vote_average | \n", 263 | "vote_count | \n", 264 | "
|---|---|---|---|---|
| count | \n", 269 | "10000.000000 | \n", 270 | "10000.000000 | \n", 271 | "10000.000000 | \n", 272 | "10000.000000 | \n", 273 | "
| mean | \n", 276 | "161243.505000 | \n", 277 | "34.697267 | \n", 278 | "6.621150 | \n", 279 | "1547.309400 | \n", 280 | "
| std | \n", 283 | "211422.046043 | \n", 284 | "211.684175 | \n", 285 | "0.766231 | \n", 286 | "2648.295789 | \n", 287 | "
| min | \n", 290 | "5.000000 | \n", 291 | "0.600000 | \n", 292 | "4.600000 | \n", 293 | "200.000000 | \n", 294 | "
| 25% | \n", 297 | "10127.750000 | \n", 298 | "9.154750 | \n", 299 | "6.100000 | \n", 300 | "315.000000 | \n", 301 | "
| 50% | \n", 304 | "30002.500000 | \n", 305 | "13.637500 | \n", 306 | "6.600000 | \n", 307 | "583.500000 | \n", 308 | "
| 75% | \n", 311 | "310133.500000 | \n", 312 | "25.651250 | \n", 313 | "7.200000 | \n", 314 | "1460.000000 | \n", 315 | "
| max | \n", 318 | "934761.000000 | \n", 319 | "10436.917000 | \n", 320 | "8.700000 | \n", 321 | "31917.000000 | \n", 322 | "
| \n", 409 | " | id | \n", 410 | "title | \n", 411 | "overview | \n", 412 | "genre | \n", 413 | "
|---|---|---|---|---|
| 0 | \n", 418 | "278 | \n", 419 | "The Shawshank Redemption | \n", 420 | "Framed in the 1940s for the double murder of h... | \n", 421 | "Drama,Crime | \n", 422 | "
| 1 | \n", 425 | "19404 | \n", 426 | "Dilwale Dulhania Le Jayenge | \n", 427 | "Raj is a rich, carefree, happy-go-lucky second... | \n", 428 | "Comedy,Drama,Romance | \n", 429 | "
| 2 | \n", 432 | "238 | \n", 433 | "The Godfather | \n", 434 | "Spanning the years 1945 to 1955, a chronicle o... | \n", 435 | "Drama,Crime | \n", 436 | "
| 3 | \n", 439 | "424 | \n", 440 | "Schindler's List | \n", 441 | "The true story of how businessman Oskar Schind... | \n", 442 | "Drama,History,War | \n", 443 | "
| 4 | \n", 446 | "240 | \n", 447 | "The Godfather: Part II | \n", 448 | "In the continuing saga of the Corleone crime f... | \n", 449 | "Drama,Crime | \n", 450 | "
| ... | \n", 453 | "... | \n", 454 | "... | \n", 455 | "... | \n", 456 | "... | \n", 457 | "
| 9995 | \n", 460 | "10196 | \n", 461 | "The Last Airbender | \n", 462 | "The story follows the adventures of Aang, a yo... | \n", 463 | "Action,Adventure,Fantasy | \n", 464 | "
| 9996 | \n", 467 | "331446 | \n", 468 | "Sharknado 3: Oh Hell No! | \n", 469 | "The sharks take bite out of the East Coast whe... | \n", 470 | "Action,TV Movie,Science Fiction,Comedy,Adventure | \n", 471 | "
| 9997 | \n", 474 | "13995 | \n", 475 | "Captain America | \n", 476 | "During World War II, a brave, patriotic Americ... | \n", 477 | "Action,Science Fiction,War | \n", 478 | "
| 9998 | \n", 481 | "2312 | \n", 482 | "In the Name of the King: A Dungeon Siege Tale | \n", 483 | "A man named Farmer sets out to rescue his kidn... | \n", 484 | "Adventure,Fantasy,Action,Drama | \n", 485 | "
| 9999 | \n", 488 | "455957 | \n", 489 | "Domino | \n", 490 | "Seeking justice for his partner’s murder by an... | \n", 491 | "Thriller,Action,Crime | \n", 492 | "
10000 rows × 4 columns
\n", 496 | "| \n", 600 | " | id | \n", 601 | "title | \n", 602 | "overview | \n", 603 | "genre | \n", 604 | "tags | \n", 605 | "
|---|---|---|---|---|---|
| 0 | \n", 610 | "278 | \n", 611 | "The Shawshank Redemption | \n", 612 | "Framed in the 1940s for the double murder of h... | \n", 613 | "Drama,Crime | \n", 614 | "Framed in the 1940s for the double murder of h... | \n", 615 | "
| 1 | \n", 618 | "19404 | \n", 619 | "Dilwale Dulhania Le Jayenge | \n", 620 | "Raj is a rich, carefree, happy-go-lucky second... | \n", 621 | "Comedy,Drama,Romance | \n", 622 | "Raj is a rich, carefree, happy-go-lucky second... | \n", 623 | "
| 2 | \n", 626 | "238 | \n", 627 | "The Godfather | \n", 628 | "Spanning the years 1945 to 1955, a chronicle o... | \n", 629 | "Drama,Crime | \n", 630 | "Spanning the years 1945 to 1955, a chronicle o... | \n", 631 | "
| 3 | \n", 634 | "424 | \n", 635 | "Schindler's List | \n", 636 | "The true story of how businessman Oskar Schind... | \n", 637 | "Drama,History,War | \n", 638 | "The true story of how businessman Oskar Schind... | \n", 639 | "
| 4 | \n", 642 | "240 | \n", 643 | "The Godfather: Part II | \n", 644 | "In the continuing saga of the Corleone crime f... | \n", 645 | "Drama,Crime | \n", 646 | "In the continuing saga of the Corleone crime f... | \n", 647 | "
| ... | \n", 650 | "... | \n", 651 | "... | \n", 652 | "... | \n", 653 | "... | \n", 654 | "... | \n", 655 | "
| 9995 | \n", 658 | "10196 | \n", 659 | "The Last Airbender | \n", 660 | "The story follows the adventures of Aang, a yo... | \n", 661 | "Action,Adventure,Fantasy | \n", 662 | "The story follows the adventures of Aang, a yo... | \n", 663 | "
| 9996 | \n", 666 | "331446 | \n", 667 | "Sharknado 3: Oh Hell No! | \n", 668 | "The sharks take bite out of the East Coast whe... | \n", 669 | "Action,TV Movie,Science Fiction,Comedy,Adventure | \n", 670 | "The sharks take bite out of the East Coast whe... | \n", 671 | "
| 9997 | \n", 674 | "13995 | \n", 675 | "Captain America | \n", 676 | "During World War II, a brave, patriotic Americ... | \n", 677 | "Action,Science Fiction,War | \n", 678 | "During World War II, a brave, patriotic Americ... | \n", 679 | "
| 9998 | \n", 682 | "2312 | \n", 683 | "In the Name of the King: A Dungeon Siege Tale | \n", 684 | "A man named Farmer sets out to rescue his kidn... | \n", 685 | "Adventure,Fantasy,Action,Drama | \n", 686 | "A man named Farmer sets out to rescue his kidn... | \n", 687 | "
| 9999 | \n", 690 | "455957 | \n", 691 | "Domino | \n", 692 | "Seeking justice for his partner’s murder by an... | \n", 693 | "Thriller,Action,Crime | \n", 694 | "Seeking justice for his partner’s murder by an... | \n", 695 | "
10000 rows × 5 columns
\n", 699 | "| \n", 803 | " | id | \n", 804 | "title | \n", 805 | "tags | \n", 806 | "
|---|---|---|---|
| 0 | \n", 811 | "278 | \n", 812 | "The Shawshank Redemption | \n", 813 | "Framed in the 1940s for the double murder of h... | \n", 814 | "
| 1 | \n", 817 | "19404 | \n", 818 | "Dilwale Dulhania Le Jayenge | \n", 819 | "Raj is a rich, carefree, happy-go-lucky second... | \n", 820 | "
| 2 | \n", 823 | "238 | \n", 824 | "The Godfather | \n", 825 | "Spanning the years 1945 to 1955, a chronicle o... | \n", 826 | "
| 3 | \n", 829 | "424 | \n", 830 | "Schindler's List | \n", 831 | "The true story of how businessman Oskar Schind... | \n", 832 | "
| 4 | \n", 835 | "240 | \n", 836 | "The Godfather: Part II | \n", 837 | "In the continuing saga of the Corleone crime f... | \n", 838 | "
| ... | \n", 841 | "... | \n", 842 | "... | \n", 843 | "... | \n", 844 | "
| 9995 | \n", 847 | "10196 | \n", 848 | "The Last Airbender | \n", 849 | "The story follows the adventures of Aang, a yo... | \n", 850 | "
| 9996 | \n", 853 | "331446 | \n", 854 | "Sharknado 3: Oh Hell No! | \n", 855 | "The sharks take bite out of the East Coast whe... | \n", 856 | "
| 9997 | \n", 859 | "13995 | \n", 860 | "Captain America | \n", 861 | "During World War II, a brave, patriotic Americ... | \n", 862 | "
| 9998 | \n", 865 | "2312 | \n", 866 | "In the Name of the King: A Dungeon Siege Tale | \n", 867 | "A man named Farmer sets out to rescue his kidn... | \n", 868 | "
| 9999 | \n", 871 | "455957 | \n", 872 | "Domino | \n", 873 | "Seeking justice for his partner’s murder by an... | \n", 874 | "
10000 rows × 3 columns
\n", 878 | "CountVectorizer(max_features=10000, stop_words='english')In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
CountVectorizer(max_features=10000, stop_words='english')
| \n", 1589 | " | id | \n", 1590 | "title | \n", 1591 | "tags | \n", 1592 | "
|---|---|---|---|
| 0 | \n", 1597 | "278 | \n", 1598 | "The Shawshank Redemption | \n", 1599 | "Framed in the 1940s for the double murder of h... | \n", 1600 | "
| 1 | \n", 1603 | "19404 | \n", 1604 | "Dilwale Dulhania Le Jayenge | \n", 1605 | "Raj is a rich, carefree, happy-go-lucky second... | \n", 1606 | "
| 2 | \n", 1609 | "238 | \n", 1610 | "The Godfather | \n", 1611 | "Spanning the years 1945 to 1955, a chronicle o... | \n", 1612 | "
| 3 | \n", 1615 | "424 | \n", 1616 | "Schindler's List | \n", 1617 | "The true story of how businessman Oskar Schind... | \n", 1618 | "
| 4 | \n", 1621 | "240 | \n", 1622 | "The Godfather: Part II | \n", 1623 | "In the continuing saga of the Corleone crime f... | \n", 1624 | "
| ... | \n", 1627 | "... | \n", 1628 | "... | \n", 1629 | "... | \n", 1630 | "
| 9995 | \n", 1633 | "10196 | \n", 1634 | "The Last Airbender | \n", 1635 | "The story follows the adventures of Aang, a yo... | \n", 1636 | "
| 9996 | \n", 1639 | "331446 | \n", 1640 | "Sharknado 3: Oh Hell No! | \n", 1641 | "The sharks take bite out of the East Coast whe... | \n", 1642 | "
| 9997 | \n", 1645 | "13995 | \n", 1646 | "Captain America | \n", 1647 | "During World War II, a brave, patriotic Americ... | \n", 1648 | "
| 9998 | \n", 1651 | "2312 | \n", 1652 | "In the Name of the King: A Dungeon Siege Tale | \n", 1653 | "A man named Farmer sets out to rescue his kidn... | \n", 1654 | "
| 9999 | \n", 1657 | "455957 | \n", 1658 | "Domino | \n", 1659 | "Seeking justice for his partner’s murder by an... | \n", 1660 | "
10000 rows × 3 columns
\n", 1664 | "