Spaces:
Runtime error
Runtime error
Commit
·
4fffd17
1
Parent(s):
1920f72
Update gpt2.py
Browse files
gpt2.py
CHANGED
@@ -3,9 +3,9 @@ from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
|
3 |
import torch
|
4 |
|
5 |
|
6 |
-
def app():
|
7 |
-
|
8 |
-
|
9 |
|
10 |
|
11 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
3 |
import torch
|
4 |
|
5 |
|
6 |
+
# def app():
|
7 |
+
# st.title('GPT-2 Text Generator')
|
8 |
+
# st.write('This is the GPT-2 text generator page.')
|
9 |
|
10 |
|
11 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|