{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "HuggingFace Inference API.ipynb", "provenance": [], "collapsed_sections": [], "authorship_tag": "ABX9TyNHyewpdQeAW+aVNt3O6cpa", "include_colab_link": true }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "8bc0c8c5f4514931bc411d2242945ef8": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_view_name": "HBoxView", "_dom_classes": [], "_model_name": "HBoxModel", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.5.0", "box_style": "", "layout": "IPY_MODEL_6220472c88294f98991ba2bf5905d154", "_model_module": "@jupyter-widgets/controls", "children": [ "IPY_MODEL_4a74e2195a6141419b9a4b36c1a61dfe", "IPY_MODEL_fcb34f70d3674069a7e8c40b77f89cf9", "IPY_MODEL_81c9e27c7d7743fe9ec9b434c7e7896d" ] } }, "6220472c88294f98991ba2bf5905d154": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "4a74e2195a6141419b9a4b36c1a61dfe": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_59a23922babf412b84c9884a1d6331cb", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": "Downloading: 100%", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_122e38b8ba5f4fa1b8f901aa9a88cf7b" } }, "fcb34f70d3674069a7e8c40b77f89cf9": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_view_name": "ProgressView", "style": "IPY_MODEL_dc746b670c6d43ce8d42d0b741f0c8ab", "_dom_classes": [], "description": "", "_model_name": "FloatProgressModel", "bar_style": "success", "max": 26, "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": 26, "_view_count": null, "_view_module_version": "1.5.0", "orientation": "horizontal", "min": 0, "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_ea97741c5894432fba1ba79122ac62d0" } }, "81c9e27c7d7743fe9ec9b434c7e7896d": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_2516a5401d44426a8993a51c7a6773cc", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": " 26.0/26.0 [00:00<00:00, 607B/s]", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_2e9fdc7b6e0a420dba7b0bd8fe09fe3d" } }, "59a23922babf412b84c9884a1d6331cb": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "122e38b8ba5f4fa1b8f901aa9a88cf7b": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "dc746b670c6d43ce8d42d0b741f0c8ab": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "ProgressStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "bar_color": null, "_model_module": "@jupyter-widgets/controls" } }, "ea97741c5894432fba1ba79122ac62d0": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "2516a5401d44426a8993a51c7a6773cc": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "2e9fdc7b6e0a420dba7b0bd8fe09fe3d": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "ce08fa4395df4e968fc9881a79237581": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_view_name": "HBoxView", "_dom_classes": [], "_model_name": "HBoxModel", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.5.0", "box_style": "", "layout": "IPY_MODEL_443973c82804473985884921fb62dfce", "_model_module": "@jupyter-widgets/controls", "children": [ "IPY_MODEL_f4072246bc1c4dfcbd6f91770cf8d5a3", "IPY_MODEL_0b11edbb662045d8b638e92f5f3b6d7c", "IPY_MODEL_833513f720994bb4a8513a1ca0e3bceb" ] } }, "443973c82804473985884921fb62dfce": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "f4072246bc1c4dfcbd6f91770cf8d5a3": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_32be562ee94b4a23b80dbe5348620ca7", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": "Downloading: 100%", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_173cc1476cc846fdbb9d51019cbc3eb2" } }, "0b11edbb662045d8b638e92f5f3b6d7c": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_view_name": "ProgressView", "style": "IPY_MODEL_2c48209f2e64484293f51ac758eceda4", "_dom_classes": [], "description": "", "_model_name": "FloatProgressModel", "bar_style": "success", "max": 666, "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": 666, "_view_count": null, "_view_module_version": "1.5.0", "orientation": "horizontal", "min": 0, "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_4a6ac1974bd84d6e8e5929633c12dfd6" } }, "833513f720994bb4a8513a1ca0e3bceb": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_e9a75aacb33c4e34a92d299eef395a8e", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": " 666/666 [00:00<00:00, 12.1kB/s]", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_499a29051d144771878d90da42328b99" } }, "32be562ee94b4a23b80dbe5348620ca7": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "173cc1476cc846fdbb9d51019cbc3eb2": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "2c48209f2e64484293f51ac758eceda4": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "ProgressStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "bar_color": null, "_model_module": "@jupyter-widgets/controls" } }, "4a6ac1974bd84d6e8e5929633c12dfd6": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "e9a75aacb33c4e34a92d299eef395a8e": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "499a29051d144771878d90da42328b99": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "e9ede7d2d741488f833bb5299fa7aa44": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_view_name": "HBoxView", "_dom_classes": [], "_model_name": "HBoxModel", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.5.0", "box_style": "", "layout": "IPY_MODEL_4e4da4ac97a44885a31715836648806d", "_model_module": "@jupyter-widgets/controls", "children": [ "IPY_MODEL_988e552da54b4a7d9d995c1bd1ad1db6", "IPY_MODEL_d53c17b06c814236a8aa09a3b47b5bf1", "IPY_MODEL_09a30ad0529f4218b612bd3acb208a02" ] } }, "4e4da4ac97a44885a31715836648806d": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "988e552da54b4a7d9d995c1bd1ad1db6": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_52351a7ea82545f09dc27a5a492fcef3", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": "Downloading: 100%", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_81d5a51f078846f98450510eb0e9f8bc" } }, "d53c17b06c814236a8aa09a3b47b5bf1": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_view_name": "ProgressView", "style": "IPY_MODEL_874f7cad82d942c8a99c347cb5592263", "_dom_classes": [], "description": "", "_model_name": "FloatProgressModel", "bar_style": "success", "max": 898669, "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": 898669, "_view_count": null, "_view_module_version": "1.5.0", "orientation": "horizontal", "min": 0, "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_311ffcea9729450c9e9528042f03a755" } }, "09a30ad0529f4218b612bd3acb208a02": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_679c398f71c44296b1f9bba6324613a5", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": " 878k/878k [00:01<00:00, 1.20MB/s]", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_2fcde43d559f4072ac702450c7ea21f9" } }, "52351a7ea82545f09dc27a5a492fcef3": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "81d5a51f078846f98450510eb0e9f8bc": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "874f7cad82d942c8a99c347cb5592263": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "ProgressStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "bar_color": null, "_model_module": "@jupyter-widgets/controls" } }, "311ffcea9729450c9e9528042f03a755": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "679c398f71c44296b1f9bba6324613a5": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "2fcde43d559f4072ac702450c7ea21f9": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "be6d504bfe054761b5e691dd12236eba": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_view_name": "HBoxView", "_dom_classes": [], "_model_name": "HBoxModel", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.5.0", "box_style": "", "layout": "IPY_MODEL_ba2216f8a17a41aeae517d808319238f", "_model_module": "@jupyter-widgets/controls", "children": [ "IPY_MODEL_b0afa3c8c7af4e719acb22acfa576c0e", "IPY_MODEL_1f41160dfeeb44fabf62e1eb247f017c", "IPY_MODEL_f3da4f644d5a4f9cb89ab1c7c30754e3" ] } }, "ba2216f8a17a41aeae517d808319238f": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "b0afa3c8c7af4e719acb22acfa576c0e": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_2356caf1fdeb4da09a1d6324d190f3a1", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": "Downloading: 100%", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_ae7445c0baa14f1fa5a583dcdbdde740" } }, "1f41160dfeeb44fabf62e1eb247f017c": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_view_name": "ProgressView", "style": "IPY_MODEL_ff0a8dbe374a460f81d57f1917de3a14", "_dom_classes": [], "description": "", "_model_name": "FloatProgressModel", "bar_style": "success", "max": 456318, "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": 456318, "_view_count": null, "_view_module_version": "1.5.0", "orientation": "horizontal", "min": 0, "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_f8db5e19e9364f02b5e3fcb2ead1cbb5" } }, "f3da4f644d5a4f9cb89ab1c7c30754e3": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_085fa2786d4a4a628e04feb3294dbb81", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": " 446k/446k [00:00<00:00, 652kB/s]", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_9d16172ab0c843619a9576600ad75b93" } }, "2356caf1fdeb4da09a1d6324d190f3a1": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "ae7445c0baa14f1fa5a583dcdbdde740": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "ff0a8dbe374a460f81d57f1917de3a14": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "ProgressStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "bar_color": null, "_model_module": "@jupyter-widgets/controls" } }, "f8db5e19e9364f02b5e3fcb2ead1cbb5": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "085fa2786d4a4a628e04feb3294dbb81": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "9d16172ab0c843619a9576600ad75b93": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "2bb14995c1a947e5af1d397fb7ca8f4e": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_view_name": "HBoxView", "_dom_classes": [], "_model_name": "HBoxModel", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.5.0", "box_style": "", "layout": "IPY_MODEL_a6e91861700948dda786a7ee569fa14a", "_model_module": "@jupyter-widgets/controls", "children": [ "IPY_MODEL_53754f3ac4b64bc9a35b9e055cf2956d", "IPY_MODEL_aa1d3552edf448dab717a223da000c0c", "IPY_MODEL_dd19026678d14776919ec790ea2895e0" ] } }, "a6e91861700948dda786a7ee569fa14a": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "53754f3ac4b64bc9a35b9e055cf2956d": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_cd51ad04adb947d29142bd2aa98b7962", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": "Downloading: 100%", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_9a09de2b85994da3bad1a1f16cac19af" } }, "aa1d3552edf448dab717a223da000c0c": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_view_name": "ProgressView", "style": "IPY_MODEL_b551b7ffbbb142e28d6a2b591b218c73", "_dom_classes": [], "description": "", "_model_name": "FloatProgressModel", "bar_style": "success", "max": 48, "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": 48, "_view_count": null, "_view_module_version": "1.5.0", "orientation": "horizontal", "min": 0, "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_49e5a22392074c359905aa5483cd1a67" } }, "dd19026678d14776919ec790ea2895e0": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_d69bd90ac1ab42a0b3d0d53dc812bab2", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": " 48.0/48.0 [00:00<00:00, 479B/s]", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_32fce586f5fa4a0381b8bd21c65fdc21" } }, "cd51ad04adb947d29142bd2aa98b7962": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "9a09de2b85994da3bad1a1f16cac19af": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "b551b7ffbbb142e28d6a2b591b218c73": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "ProgressStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "bar_color": null, "_model_module": "@jupyter-widgets/controls" } }, "49e5a22392074c359905aa5483cd1a67": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "d69bd90ac1ab42a0b3d0d53dc812bab2": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "32fce586f5fa4a0381b8bd21c65fdc21": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "23464cc9efa0478e8bbce1d0127edfcc": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_view_name": "HBoxView", "_dom_classes": [], "_model_name": "HBoxModel", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.5.0", "box_style": "", "layout": "IPY_MODEL_a54babf468b4448da9f38bbde6297eef", "_model_module": "@jupyter-widgets/controls", "children": [ "IPY_MODEL_a1e8628d878144df82235bbb47e29cdf", "IPY_MODEL_cca51cc5d4894ff2972f18bd19eef3a5", "IPY_MODEL_9ed607b5d5704a73b1475aba7e5f706b" ] } }, "a54babf468b4448da9f38bbde6297eef": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "a1e8628d878144df82235bbb47e29cdf": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_e7918420e64643c0b2fc0b3cb4d251cf", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": "Downloading: 100%", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_2e3f5fdc3fbf4bbaa23a92e1e2cb7608" } }, "cca51cc5d4894ff2972f18bd19eef3a5": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_view_name": "ProgressView", "style": "IPY_MODEL_b14f0745becb44ebb09f5e1d011d6048", "_dom_classes": [], "description": "", "_model_name": "FloatProgressModel", "bar_style": "success", "max": 96, "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": 96, "_view_count": null, "_view_module_version": "1.5.0", "orientation": "horizontal", "min": 0, "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_304a7c45fb424c84bdbbeb2e6f3ceec1" } }, "9ed607b5d5704a73b1475aba7e5f706b": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_65f884a12995416e913d87cc88179b1d", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": " 96.0/96.0 [00:00<00:00, 1.76kB/s]", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_a96af5f450664dbb9b2c075929b765a8" } }, "e7918420e64643c0b2fc0b3cb4d251cf": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "2e3f5fdc3fbf4bbaa23a92e1e2cb7608": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "b14f0745becb44ebb09f5e1d011d6048": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "ProgressStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "bar_color": null, "_model_module": "@jupyter-widgets/controls" } }, "304a7c45fb424c84bdbbeb2e6f3ceec1": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "65f884a12995416e913d87cc88179b1d": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "a96af5f450664dbb9b2c075929b765a8": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "6f9e0580954046fd9fcec4260d672aa5": { "model_module": "@jupyter-widgets/controls", "model_name": "HBoxModel", "model_module_version": "1.5.0", "state": { "_view_name": "HBoxView", "_dom_classes": [], "_model_name": "HBoxModel", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.5.0", "box_style": "", "layout": "IPY_MODEL_1d1205a967c040179cb02f3509831a0c", "_model_module": "@jupyter-widgets/controls", "children": [ "IPY_MODEL_86c3e397dedd420688a7625475f97474", "IPY_MODEL_13a29f63f1d34149a199571f9c62e80b", "IPY_MODEL_d77107e548fd41cf8e9150fa67ddea29" ] } }, "1d1205a967c040179cb02f3509831a0c": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "86c3e397dedd420688a7625475f97474": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_be629f307b9e42b59b3413f079472edf", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": "Downloading: 100%", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_ede9941cd3674f2082a2d4e4a0fb418e" } }, "13a29f63f1d34149a199571f9c62e80b": { "model_module": "@jupyter-widgets/controls", "model_name": "FloatProgressModel", "model_module_version": "1.5.0", "state": { "_view_name": "ProgressView", "style": "IPY_MODEL_77596123684e4be7b67909ed8cce6247", "_dom_classes": [], "description": "", "_model_name": "FloatProgressModel", "bar_style": "success", "max": 510415775, "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": 510415775, "_view_count": null, "_view_module_version": "1.5.0", "orientation": "horizontal", "min": 0, "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_c87506d5ccff4d829a648263a9b7de63" } }, "d77107e548fd41cf8e9150fa67ddea29": { "model_module": "@jupyter-widgets/controls", "model_name": "HTMLModel", "model_module_version": "1.5.0", "state": { "_view_name": "HTMLView", "style": "IPY_MODEL_8ec4adac79cd4a59a737b2836a07cc16", "_dom_classes": [], "description": "", "_model_name": "HTMLModel", "placeholder": "​", "_view_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "value": " 487M/487M [00:26<00:00, 22.7MB/s]", "_view_count": null, "_view_module_version": "1.5.0", "description_tooltip": null, "_model_module": "@jupyter-widgets/controls", "layout": "IPY_MODEL_eea2e5b25b6945bba678de3acb3c1e8b" } }, "be629f307b9e42b59b3413f079472edf": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "ede9941cd3674f2082a2d4e4a0fb418e": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "77596123684e4be7b67909ed8cce6247": { "model_module": "@jupyter-widgets/controls", "model_name": "ProgressStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "ProgressStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "bar_color": null, "_model_module": "@jupyter-widgets/controls" } }, "c87506d5ccff4d829a648263a9b7de63": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } }, "8ec4adac79cd4a59a737b2836a07cc16": { "model_module": "@jupyter-widgets/controls", "model_name": "DescriptionStyleModel", "model_module_version": "1.5.0", "state": { "_view_name": "StyleView", "_model_name": "DescriptionStyleModel", "description_width": "", "_view_module": "@jupyter-widgets/base", "_model_module_version": "1.5.0", "_view_count": null, "_view_module_version": "1.2.0", "_model_module": "@jupyter-widgets/controls" } }, "eea2e5b25b6945bba678de3acb3c1e8b": { "model_module": "@jupyter-widgets/base", "model_name": "LayoutModel", "model_module_version": "1.2.0", "state": { "_view_name": "LayoutView", "grid_template_rows": null, "right": null, "justify_content": null, "_view_module": "@jupyter-widgets/base", "overflow": null, "_model_module_version": "1.2.0", "_view_count": null, "flex_flow": null, "width": null, "min_width": null, "border": null, "align_items": null, "bottom": null, "_model_module": "@jupyter-widgets/base", "top": null, "grid_column": null, "overflow_y": null, "overflow_x": null, "grid_auto_flow": null, "grid_area": null, "grid_template_columns": null, "flex": null, "_model_name": "LayoutModel", "justify_items": null, "grid_row": null, "max_height": null, "align_content": null, "visibility": null, "align_self": null, "height": null, "min_height": null, "padding": null, "grid_auto_rows": null, "grid_gap": null, "max_width": null, "order": null, "_view_module_version": "1.2.0", "grid_template_areas": null, "object_position": null, "object_fit": null, "grid_auto_columns": null, "margin": null, "display": null, "left": null } } } } }, "cells": [ { "cell_type": "markdown", "metadata": { "id": "view-in-github", "colab_type": "text" }, "source": [ "\"Open" ] }, { "cell_type": "code", "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "jaXZ6Z8mnRcN", "outputId": "d4845c01-1f51-4295-c713-06e0c7e44a7e" }, "source": [ "!pip install transformers" ], "execution_count": 1, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Collecting transformers\n", " Downloading transformers-4.12.5-py3-none-any.whl (3.1 MB)\n", "\u001b[K |████████████████████████████████| 3.1 MB 4.2 MB/s \n", "\u001b[?25hCollecting pyyaml>=5.1\n", " Downloading PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)\n", "\u001b[K |████████████████████████████████| 596 kB 50.5 MB/s \n", "\u001b[?25hRequirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from transformers) (4.8.2)\n", "Requirement already satisfied: filelock in /usr/local/lib/python3.7/dist-packages (from transformers) (3.4.0)\n", "Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from transformers) (2.23.0)\n", "Collecting tokenizers<0.11,>=0.10.1\n", " Downloading tokenizers-0.10.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.3 MB)\n", "\u001b[K |████████████████████████████████| 3.3 MB 40.0 MB/s \n", "\u001b[?25hCollecting huggingface-hub<1.0,>=0.1.0\n", " Downloading huggingface_hub-0.1.2-py3-none-any.whl (59 kB)\n", "\u001b[K |████████████████████████████████| 59 kB 6.2 MB/s \n", "\u001b[?25hCollecting sacremoses\n", " Downloading sacremoses-0.0.46-py3-none-any.whl (895 kB)\n", "\u001b[K |████████████████████████████████| 895 kB 40.6 MB/s \n", "\u001b[?25hRequirement already satisfied: tqdm>=4.27 in /usr/local/lib/python3.7/dist-packages (from transformers) (4.62.3)\n", "Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.7/dist-packages (from transformers) (21.3)\n", "Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.7/dist-packages (from transformers) (2019.12.20)\n", "Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.7/dist-packages (from transformers) (1.19.5)\n", "Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.7/dist-packages (from huggingface-hub<1.0,>=0.1.0->transformers) (3.10.0.2)\n", "Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.7/dist-packages (from packaging>=20.0->transformers) (3.0.6)\n", "Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->transformers) (3.6.0)\n", "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->transformers) (2021.10.8)\n", "Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->transformers) (3.0.4)\n", "Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->transformers) (2.10)\n", "Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->transformers) (1.24.3)\n", "Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from sacremoses->transformers) (1.15.0)\n", "Requirement already satisfied: joblib in /usr/local/lib/python3.7/dist-packages (from sacremoses->transformers) (1.1.0)\n", "Requirement already satisfied: click in /usr/local/lib/python3.7/dist-packages (from sacremoses->transformers) (7.1.2)\n", "Installing collected packages: pyyaml, tokenizers, sacremoses, huggingface-hub, transformers\n", " Attempting uninstall: pyyaml\n", " Found existing installation: PyYAML 3.13\n", " Uninstalling PyYAML-3.13:\n", " Successfully uninstalled PyYAML-3.13\n", "Successfully installed huggingface-hub-0.1.2 pyyaml-6.0 sacremoses-0.0.46 tokenizers-0.10.3 transformers-4.12.5\n" ] } ] }, { "cell_type": "code", "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "EWDgGyAznhj_", "outputId": "6c114e54-c57b-4162-c76d-a8888fc91b28" }, "source": [ "!pip install sentencepiece" ], "execution_count": 2, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Collecting sentencepiece\n", " Downloading sentencepiece-0.1.96-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)\n", "\u001b[?25l\r\u001b[K |▎ | 10 kB 20.7 MB/s eta 0:00:01\r\u001b[K |▌ | 20 kB 12.8 MB/s eta 0:00:01\r\u001b[K |▉ | 30 kB 9.5 MB/s eta 0:00:01\r\u001b[K |█ | 40 kB 8.4 MB/s eta 0:00:01\r\u001b[K |█▍ | 51 kB 4.3 MB/s eta 0:00:01\r\u001b[K |█▋ | 61 kB 4.8 MB/s eta 0:00:01\r\u001b[K |██ | 71 kB 4.6 MB/s eta 0:00:01\r\u001b[K |██▏ | 81 kB 5.2 MB/s eta 0:00:01\r\u001b[K |██▍ | 92 kB 5.3 MB/s eta 0:00:01\r\u001b[K |██▊ | 102 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███ | 112 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███▎ | 122 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███▌ | 133 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███▉ | 143 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████ | 153 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████▎ | 163 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████▋ | 174 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████▉ | 184 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████▏ | 194 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████▍ | 204 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████▊ | 215 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████ | 225 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████▏ | 235 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████▌ | 245 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████▊ | 256 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████ | 266 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████▎ | 276 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████▋ | 286 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████▉ | 296 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████ | 307 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████▍ | 317 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████▋ | 327 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████ | 337 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████▏ | 348 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████▌ | 358 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████▊ | 368 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████ | 378 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████▎ | 389 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████▌ | 399 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████▉ | 409 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████ | 419 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████▍ | 430 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████▋ | 440 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████▉ | 450 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████▏ | 460 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████▍ | 471 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████▊ | 481 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████ | 491 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████▎ | 501 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████▌ | 512 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████▊ | 522 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████ | 532 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████▎ | 542 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████▋ | 552 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████▉ | 563 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████▏ | 573 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████▍ | 583 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████▋ | 593 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████ | 604 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████▏ | 614 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████▌ | 624 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████▊ | 634 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████ | 645 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████▎ | 655 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████▌ | 665 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████▉ | 675 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████ | 686 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████▍ | 696 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████▋ | 706 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████ | 716 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████▏ | 727 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████▍ | 737 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████▊ | 747 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████ | 757 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████▎ | 768 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████▌ | 778 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████▉ | 788 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████ | 798 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████▎ | 808 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████▋ | 819 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████▉ | 829 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████▏ | 839 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████▍ | 849 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████▊ | 860 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████ | 870 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████▏ | 880 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████▌ | 890 kB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████▊ | 901 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████ | 911 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████▎ | 921 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████▋ | 931 kB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████▉ | 942 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████████ | 952 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████████▍ | 962 kB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████████▋ | 972 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████ | 983 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████▏ | 993 kB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████▌ | 1.0 MB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████▊ | 1.0 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████ | 1.0 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████▎ | 1.0 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████▌ | 1.0 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████▉ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████████ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████████▍ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████████▋ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████████▉ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████████████▏ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████████████▍ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |█████████████████████████████▊ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████████ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████████▎ | 1.1 MB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████████▌ | 1.2 MB 4.4 MB/s eta 0:00:01\r\u001b[K |██████████████████████████████▊ | 1.2 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████████ | 1.2 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████████▎| 1.2 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████████▋| 1.2 MB 4.4 MB/s eta 0:00:01\r\u001b[K |███████████████████████████████▉| 1.2 MB 4.4 MB/s eta 0:00:01\r\u001b[K |████████████████████████████████| 1.2 MB 4.4 MB/s \n", "\u001b[?25hInstalling collected packages: sentencepiece\n", "Successfully installed sentencepiece-0.1.96\n" ] } ] }, { "cell_type": "code", "metadata": { "id": "SoTwGf6wnG0y" }, "source": [ "from transformers import pipeline, set_seed, AutoTokenizer, AutoModelWithLMHead\n", "from transformers.pipelines import TextGenerationPipeline\n", "import re\n", "import random\n", "\n", "\n", "class TextGenerator:\n", " def __init__(self):\n", " self.generator: TextGenerationPipeline\n", " self.tokenizer = AutoTokenizer.from_pretrained(\"nandinib1999/quote-generator\")\n", " self.model = AutoModelWithLMHead.from_pretrained(\"nandinib1999/quote-generator\") \n", "\n", " def load_generator(self) -> None:\n", " self.generator = pipeline('text-generation', model= self.model, tokenizer = self.tokenizer)\n", "\n", " def clean_text(self, quote):\n", " # Remove extra spaces\n", " quote = re.sub(\"\\s\\s+\", \" \", quote)\n", " # Remove space before punctuation\n", " quote = re.sub(r'\\s+([?.!,;])', r'\\1', quote)\n", " # Remove space after punctuation\n", " quote = re.sub(r'([\"\\'])\\s+', r'\\1', quote)\n", " # Sentence case\n", " quote = quote.capitalize().strip()\n", " return quote\n", "\n", " def generate_text(self, starting_text: str, min_length=3, max_length=25, temperature=1.0) -> str:\n", " quote = self.generator(starting_text.strip(), min_length = min_length, max_length = max_length, temperature = temperature, top_k=5, top_p=0.9)[0]['generated_text']\n", " return self.clean_text(quote)" ], "execution_count": 5, "outputs": [] }, { "cell_type": "code", "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 295, "referenced_widgets": [ "8bc0c8c5f4514931bc411d2242945ef8", "6220472c88294f98991ba2bf5905d154", "4a74e2195a6141419b9a4b36c1a61dfe", "fcb34f70d3674069a7e8c40b77f89cf9", "81c9e27c7d7743fe9ec9b434c7e7896d", "59a23922babf412b84c9884a1d6331cb", "122e38b8ba5f4fa1b8f901aa9a88cf7b", "dc746b670c6d43ce8d42d0b741f0c8ab", "ea97741c5894432fba1ba79122ac62d0", "2516a5401d44426a8993a51c7a6773cc", "2e9fdc7b6e0a420dba7b0bd8fe09fe3d", "ce08fa4395df4e968fc9881a79237581", "443973c82804473985884921fb62dfce", "f4072246bc1c4dfcbd6f91770cf8d5a3", "0b11edbb662045d8b638e92f5f3b6d7c", "833513f720994bb4a8513a1ca0e3bceb", "32be562ee94b4a23b80dbe5348620ca7", "173cc1476cc846fdbb9d51019cbc3eb2", "2c48209f2e64484293f51ac758eceda4", "4a6ac1974bd84d6e8e5929633c12dfd6", "e9a75aacb33c4e34a92d299eef395a8e", "499a29051d144771878d90da42328b99", "e9ede7d2d741488f833bb5299fa7aa44", "4e4da4ac97a44885a31715836648806d", "988e552da54b4a7d9d995c1bd1ad1db6", "d53c17b06c814236a8aa09a3b47b5bf1", "09a30ad0529f4218b612bd3acb208a02", "52351a7ea82545f09dc27a5a492fcef3", "81d5a51f078846f98450510eb0e9f8bc", "874f7cad82d942c8a99c347cb5592263", "311ffcea9729450c9e9528042f03a755", "679c398f71c44296b1f9bba6324613a5", "2fcde43d559f4072ac702450c7ea21f9", "be6d504bfe054761b5e691dd12236eba", "ba2216f8a17a41aeae517d808319238f", "b0afa3c8c7af4e719acb22acfa576c0e", "1f41160dfeeb44fabf62e1eb247f017c", "f3da4f644d5a4f9cb89ab1c7c30754e3", "2356caf1fdeb4da09a1d6324d190f3a1", "ae7445c0baa14f1fa5a583dcdbdde740", "ff0a8dbe374a460f81d57f1917de3a14", "f8db5e19e9364f02b5e3fcb2ead1cbb5", "085fa2786d4a4a628e04feb3294dbb81", "9d16172ab0c843619a9576600ad75b93", "2bb14995c1a947e5af1d397fb7ca8f4e", "a6e91861700948dda786a7ee569fa14a", "53754f3ac4b64bc9a35b9e055cf2956d", "aa1d3552edf448dab717a223da000c0c", "dd19026678d14776919ec790ea2895e0", "cd51ad04adb947d29142bd2aa98b7962", "9a09de2b85994da3bad1a1f16cac19af", "b551b7ffbbb142e28d6a2b591b218c73", "49e5a22392074c359905aa5483cd1a67", "d69bd90ac1ab42a0b3d0d53dc812bab2", "32fce586f5fa4a0381b8bd21c65fdc21", "23464cc9efa0478e8bbce1d0127edfcc", "a54babf468b4448da9f38bbde6297eef", "a1e8628d878144df82235bbb47e29cdf", "cca51cc5d4894ff2972f18bd19eef3a5", "9ed607b5d5704a73b1475aba7e5f706b", "e7918420e64643c0b2fc0b3cb4d251cf", "2e3f5fdc3fbf4bbaa23a92e1e2cb7608", "b14f0745becb44ebb09f5e1d011d6048", "304a7c45fb424c84bdbbeb2e6f3ceec1", "65f884a12995416e913d87cc88179b1d", "a96af5f450664dbb9b2c075929b765a8", "6f9e0580954046fd9fcec4260d672aa5", "1d1205a967c040179cb02f3509831a0c", "86c3e397dedd420688a7625475f97474", "13a29f63f1d34149a199571f9c62e80b", "d77107e548fd41cf8e9150fa67ddea29", "be629f307b9e42b59b3413f079472edf", "ede9941cd3674f2082a2d4e4a0fb418e", "77596123684e4be7b67909ed8cce6247", "c87506d5ccff4d829a648263a9b7de63", "8ec4adac79cd4a59a737b2836a07cc16", "eea2e5b25b6945bba678de3acb3c1e8b" ] }, "id": "17QGavL8ntC5", "outputId": "365d93d5-4da8-475f-c31d-81fbf95d1772" }, "source": [ "text_gen = TextGenerator()" ], "execution_count": 6, "outputs": [ { "output_type": "display_data", "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "8bc0c8c5f4514931bc411d2242945ef8", "version_minor": 0, "version_major": 2 }, "text/plain": [ "Downloading: 0%| | 0.00/26.0 [00:00