Skip to content

Commit

Permalink
Update demos
Browse files Browse the repository at this point in the history
  • Loading branch information
artitw committed Jan 4, 2025
1 parent 482fbe8 commit 44bcb9b
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
20 changes: 20 additions & 0 deletions demos/STF_IDF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,26 @@
"pip install -qq -U text2text"
]
},
{
"cell_type": "code",
"source": [
"### Restart runtime to use the newly installed packages\n",
"\n",
"import sys\n",
"\n",
"if \"google.colab\" in sys.modules:\n",
"\n",
" import IPython\n",
"\n",
" app = IPython.Application.instance()\n",
" app.kernel.do_shutdown(True)"
],
"metadata": {
"id": "bejUQVpoA6gE"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
Expand Down
20 changes: 20 additions & 0 deletions demos/Text2Text_Demos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@
"pip install -qq -U text2text"
]
},
{
"cell_type": "code",
"source": [
"### Restart runtime to use the newly installed packages\n",
"\n",
"import sys\n",
"\n",
"if \"google.colab\" in sys.modules:\n",
"\n",
" import IPython\n",
"\n",
" app = IPython.Application.instance()\n",
" app.kernel.do_shutdown(True)"
],
"metadata": {
"id": "MRXmPFTeA0oI"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
Expand Down
20 changes: 20 additions & 0 deletions demos/Text2Text_LLM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,26 @@
"pip install -qq -U text2text"
]
},
{
"cell_type": "code",
"source": [
"### Restart runtime to use the newly installed packages\n",
"\n",
"import sys\n",
"\n",
"if \"google.colab\" in sys.modules:\n",
"\n",
" import IPython\n",
"\n",
" app = IPython.Application.instance()\n",
" app.kernel.do_shutdown(True)"
],
"metadata": {
"id": "hKwX638hA3wK"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="text2text",
version="1.8.7",
version="1.8.8",
author="artitw",
author_email="[email protected]",
description="Text2Text Language Modeling Toolkit",
Expand Down

0 comments on commit 44bcb9b

Please sign in to comment.