DuckyPolice commited on
Commit
2ecceb9
1 Parent(s): 7492469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
  st.title( 'Text generation by GPT model' )
6
  st.subheader( 'This application shows the difference in text generation between a rugpt3small model trained on general documents and the same model trained on jokes' )
7
 
8
- device = 'cuda' if torch.cuda.is_available() else 'cpu'
9
 
10
  # Load the model tokenizer
11
  from transformers import GPT2Tokenizer
 
5
  st.title( 'Text generation by GPT model' )
6
  st.subheader( 'This application shows the difference in text generation between a rugpt3small model trained on general documents and the same model trained on jokes' )
7
 
8
+ device = 'cpu' if torch.cuda.is_available() else 'cpu'
9
 
10
  # Load the model tokenizer
11
  from transformers import GPT2Tokenizer