Skip to content

Commit 0e9a8ed

Browse files
committed
adjusted docs for Transformers example(2)
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 24c5175 commit 0e9a8ed

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/NextcloudTalkBotTransformers.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ Because the example was developed on a Mac, we ended up using Torchvision.
4141

4242
Next, we integrate the latest version of `nc_py_api` to minimize code redundancy and focus on the application's logic.
4343

44-
Model Downloading
45-
"""""""""""""""""
44+
Prepare of Language Model
45+
"""""""""""""""""""""""""
46+
47+
.. code-block::
48+
49+
MODEL_NAME = "MBZUAI/LaMini-Flan-T5-77M"
50+
51+
We specify the model name globally so that we can easily change the model name if necessary.
4652

4753
**When Should We Download the Language Model?**
4854

@@ -92,7 +98,7 @@ Model Storage
9298
"""""""""""""
9399

94100
By default, models will be downloaded to a directory that's removed when updating the app.
95-
o persistently store the models even after updates, add the following line to your code:
101+
To persistently store the models even after updates, add the following line to your code:
96102

97103
.. code-block::
98104

0 commit comments

Comments
 (0)