|
370 | 370 | "This section walks through a few steps required in order to use the model in your notebook."
|
371 | 371 | ]
|
372 | 372 | },
|
| 373 | + { |
| 374 | + "cell_type": "markdown", |
| 375 | + "metadata": {}, |
| 376 | + "source": [] |
| 377 | + }, |
373 | 378 | {
|
374 | 379 | "cell_type": "markdown",
|
375 | 380 | "metadata": {
|
|
670 | 675 | },
|
671 | 676 | {
|
672 | 677 | "cell_type": "code",
|
673 |
| - "execution_count": null, |
| 678 | + "execution_count": 1, |
674 | 679 | "metadata": {
|
675 | 680 | "id": "-J5LHgS6LLZ0"
|
676 | 681 | },
|
677 |
| - "outputs": [], |
| 682 | + "outputs": [ |
| 683 | + { |
| 684 | + "name": "stdout", |
| 685 | + "output_type": "stream", |
| 686 | + "text": [ |
| 687 | + "Creating gs://code-samples-8094e844-bec3-11ee-8298-4201c0a8181f/...\n" |
| 688 | + ] |
| 689 | + } |
| 690 | + ], |
678 | 691 | "source": [
|
679 | 692 | "import uuid\n",
|
680 | 693 | "BUCKET_ID = \"code-samples-\" + str(uuid.uuid1())\n",
|
681 | 694 | "\n",
|
682 | 695 | "!gsutil mb gs://{BUCKET_ID}"
|
683 | 696 | ]
|
684 | 697 | },
|
| 698 | + { |
| 699 | + "cell_type": "code", |
| 700 | + "execution_count": null, |
| 701 | + "metadata": {}, |
| 702 | + "outputs": [], |
| 703 | + "source": [ |
| 704 | + "import time\n", |
| 705 | + "\n", |
| 706 | + "# Wait one minute so that the permissions on the new bucket are up-to-date.\n", |
| 707 | + "# https://cloud.google.com/storage/docs/consistency#eventually_consistent_operations\n", |
| 708 | + "time.sleep(60)" |
| 709 | + ] |
| 710 | + }, |
685 | 711 | {
|
686 | 712 | "cell_type": "markdown",
|
687 | 713 | "metadata": {
|
|
785 | 811 | },
|
786 | 812 | {
|
787 | 813 | "cell_type": "code",
|
788 |
| - "execution_count": null, |
| 814 | + "execution_count": 2, |
789 | 815 | "metadata": {
|
790 | 816 | "id": "iQFo6OUBLmi3"
|
791 | 817 | },
|
792 |
| - "outputs": [], |
| 818 | + "outputs": [ |
| 819 | + { |
| 820 | + "name": "stdout", |
| 821 | + "output_type": "stream", |
| 822 | + "text": [ |
| 823 | + "Removing gs://code-samples-8094e844-bec3-11ee-8298-4201c0a8181f/...\n", |
| 824 | + "Deleted bucket 'code-samples-8094e844-bec3-11ee-8298-4201c0a8181f'.\n" |
| 825 | + ] |
| 826 | + } |
| 827 | + ], |
793 | 828 | "source": [
|
794 |
| - "# # Delete the Google Cloud Storage bucket and files\n", |
795 |
| - "# ! gsutil rm -r gs://{BUCKET_ID}\n", |
796 |
| - "# print(f\"Deleted bucket '{BUCKET_ID}'.\")" |
| 829 | + "# Delete the Google Cloud Storage bucket and files\n", |
| 830 | + "! gsutil rm -r gs://{BUCKET_ID}\n", |
| 831 | + "print(f\"Deleted bucket '{BUCKET_ID}'.\")" |
797 | 832 | ]
|
| 833 | + }, |
| 834 | + { |
| 835 | + "cell_type": "code", |
| 836 | + "execution_count": null, |
| 837 | + "metadata": {}, |
| 838 | + "outputs": [], |
| 839 | + "source": [] |
798 | 840 | }
|
799 | 841 | ],
|
800 | 842 | "metadata": {
|
|
805 | 847 | "kernelspec": {
|
806 | 848 | "display_name": "Python 3",
|
807 | 849 | "name": "python3"
|
| 850 | + }, |
| 851 | + "language_info": { |
| 852 | + "codemirror_mode": { |
| 853 | + "name": "ipython", |
| 854 | + "version": 3 |
| 855 | + }, |
| 856 | + "file_extension": ".py", |
| 857 | + "mimetype": "text/x-python", |
| 858 | + "name": "python", |
| 859 | + "nbconvert_exporter": "python", |
| 860 | + "pygments_lexer": "ipython3", |
| 861 | + "version": "3.10.9" |
808 | 862 | }
|
809 | 863 | },
|
810 | 864 | "nbformat": 4,
|
|
0 commit comments