Spaces:
Sleeping
Sleeping
Ezi Ozoani
commited on
Commit
·
a72849b
1
Parent(s):
e49ca90
minor fixes
Browse files
app.py
CHANGED
@@ -126,8 +126,7 @@ The developers of GPT-2 state in their [model card](https://github.com/openai/gp
|
|
126 |
Using DistilGPT2, the Hugging Face team built the [Write With Transformers](https://transformer.huggingface.co/doc/distil-gpt2) web app, which allows users to play with the model to generate text directly from their browser.
|
127 |
''')
|
128 |
col1.subheader('Out-of-scope Uses')
|
129 |
-
|
130 |
-
col1.markdown('''
|
131 |
|
132 |
|
133 |
OpenAI states in the GPT-2 [model card](https://github.com/openai/gpt-2/blob/master/model_card.md):
|
@@ -164,7 +163,7 @@ Setting `pad_token_id` to `eos_token_id`:50256 for open-end generation.
|
|
164 |
```
|
165 |
|
166 |
|
167 |
-
|
168 |
|
169 |
```python
|
170 |
from transformers import GPT2Tokenizer, GPT2Model
|
|
|
126 |
Using DistilGPT2, the Hugging Face team built the [Write With Transformers](https://transformer.huggingface.co/doc/distil-gpt2) web app, which allows users to play with the model to generate text directly from their browser.
|
127 |
''')
|
128 |
col1.subheader('Out-of-scope Uses')
|
129 |
+
col1.markdown('''
|
|
|
130 |
|
131 |
|
132 |
OpenAI states in the GPT-2 [model card](https://github.com/openai/gpt-2/blob/master/model_card.md):
|
|
|
163 |
```
|
164 |
|
165 |
|
166 |
+
**Here is how to use this model to get the features of a given text in PyTorch**:
|
167 |
|
168 |
```python
|
169 |
from transformers import GPT2Tokenizer, GPT2Model
|