Skip to content

Commit

Permalink
Fix decoding error during writing files on windows for internvl2 note…
Browse files Browse the repository at this point in the history
…book (#2396)

CVS-152591
  • Loading branch information
aleksandr-mokrov committed Sep 17, 2024
1 parent 3ee3695 commit d37453e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notebooks/internvl2/internvl2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@
"\n",
"if not Path(\"conversation.py\").exists():\n",
" r = requests.get(\"https://huggingface.co/OpenGVLab/InternVL2-1B/raw/main/conversation.py\")\n",
" open(\"conversation.py\", \"w\").write(r.text)\n",
" open(\"conversation.py\", \"w\", encoding=\"utf-8\").write(r.text)\n",
"\n",
"if not Path(\"internvl2_helper.py\").exists():\n",
" r = requests.get(url=\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/notebooks/internvl2/internvl2_helper.py\")\n",
" open(\"internvl2_helper.py\", \"w\").write(r.text)\n",
" open(\"internvl2_helper.py\", \"w\", encoding=\"utf-8\").write(r.text)\n",
"\n",
"if not Path(\"gradio_helper.py\").exists():\n",
" r = requests.get(url=\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/notebooks/internvl2/gradio_helper.py\")\n",
" open(\"gradio_helper.py\", \"w\").write(r.text)\n",
" open(\"gradio_helper.py\", \"w\", encoding=\"utf-8\").write(r.text)\n",
"\n",
"if not Path(\"notebook_utils.py\").exists():\n",
" r = requests.get(url=\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/notebook_utils.py\")\n",
" open(\"notebook_utils.py\", \"w\").write(r.text)"
" open(\"notebook_utils.py\", \"w\", encoding=\"utf-8\").write(r.text)"
]
},
{
Expand Down

0 comments on commit d37453e

Please sign in to comment.