SusiePHaltmann commited on
Commit
24c839f
1 Parent(s): 16667f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -1,8 +1,3 @@
1
- import torch
2
- from transformers import *
3
-
4
- # Choose the device and load the model
5
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
6
  model = AutoModelWithLMHead.from_pretrained("dalle/megaGPT-L")
7
  model.to(device)
8
  model.eval()
 
 
 
 
 
 
1
  model = AutoModelWithLMHead.from_pretrained("dalle/megaGPT-L")
2
  model.to(device)
3
  model.eval()